10-05-2013 07:58 AM
Hello
I have two applications where one works but not the other. I've also looked through previous questions about the issue.
In the application that does not work I do as followc
1: include the shell32,lib from C:\Program Files (x86)\National Instruments\CVI2013\sdk\lib\msvc to the project
2 : include < windows.h> and < shellapi.h> in the .c file where it is used
3: call ShellExecute(NULL,NULL,"mail to;post@fluidtronic.com",NULL,NULL,0);
The only difference between my two apps. is that in the one that is not working the call to ShellExecute() is from
a panel callback and in the other from a control callback.
10-09-2013 06:33 PM
ShellExecute() from MSDN: A handle to the **parent window** used for displaying a UI or error messages. This value can be NULL if the operation is not associated with a window.
I wonder if there might be a relationship to this being called by your main panel?
Have you tried passing NULL in the panel argument?
10-09-2013 06:34 PM
Spoke too soon, I see that you DID pass NULL in that argument. Ugh.
10-10-2013 05:52 AM
I found the problem. I wrote "mail to;" instead of "mailto:" My own stupid misstake. Thanx anyway