LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ShellExecute(

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. 

0 Kudos
Message 1 of 4
(3,982 Views)

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?

0 Kudos
Message 2 of 4
(3,939 Views)

Spoke too soon, I see that you DID pass NULL in that argument.  Ugh.

0 Kudos
Message 3 of 4
(3,938 Views)

I found the problem. I wrote "mail to;" instead of "mailto:" My own stupid misstake. Thanx anyway

Message 4 of 4
(3,928 Views)