Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute doesnt work? 1

Status
Not open for further replies.

iamDJ

Programmer
Nov 6, 2002
6
SE
Hi

I have this sample i find on the net:

-------------------------------------------------------
HWND hwnd = NULL;
LPCTSTR lpVerb = "open";
LPCTSTR lpFile = "LPCTSTR lpParameters = NULL;
LPCTSTR lpDirectory = ".";
INT nShowCmd = SW_SHOWNORMAL;

ShellExecute(hwnd, lpVerb, lpFile, lpParameters, lpDirectory, nShowCmd);
-------------------------------------------------------

But it doesnt work when i try to build it..
It says:
'ShellExecute' : Undeclared identifier

I have this include: #include <windows.h>

Can anyone help me with what i am doing wrong?
Is it possible i have a old version of windows.h ??

I run win2000 and have Visual Studio 6..

Thanks for any help!

/Dj
 

from MSDN :
Header: Declared in shellapi.h.
Import Library: shell32.lib.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top