Link to home
Start Free TrialLog in
Avatar of jamesxi
jamesxi

asked on

Invoke shellexecute API call from a windows form .h file

When I start a standard form app and type the line #include <shellapi.h> at the top of my form1.h, it sets off >100 errors! A lot of them are redefinition errors. If I don't include the include line, I get a function not defined error.
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jamesxi
jamesxi

ASKER

I tried adding in the <windows.h> line that you have and it worked the first time! Apparently some or all of the Windows API includes require the windows.h header to be included as well. Also, thanks for the additional info on the process object... C++ is so monsterous with all its libraries these days!