• Advertisement
Sign in to follow this  

ShellExecute problems

This topic is 4715 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, im trying to execute a application from my app. Now I found this function of the web, but I cant for the love of light seem to find what files to include to be allowed to use it.
// my includes:
#include <windows.h>
#include <shlobj.h>
#include <shlwapi.h>

// how I call it
ShellExecute( NULL, "open", "ed_toolbar.exe", NULL, NULL, SW_SHOW );


The error I get: error C2065: 'ShellExecute' : undeclared identifier Im compiling the application in debug mode, with /MDd Please tell me what Im doing wrong.

Share this post


Link to post
Share on other sites
Advertisement
lol, I found it. (or rather got some help of a m8 of mine :D )

The problem was that I had declered WIN32_LEAN_AND_MEAN

once I removed that it worked like a charm >D

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement