please help me this is urgent
-
I am using ShellExecute to open another program which is located in a subdirectory. I do this by calling it with the file param as the filename, and the directory name as the subdirectory. It works under win2k/xp/nt but not on win95/98/ME....If anyone knows why and how I can fix it it would be of amazing help! So imagine the directory is 'stuff' and the file is 'thing.exe' I call ShellExecute(NULL,NULL,"thing.exe",NULL,"stuff",SW_SHOW); This works fine in 2k but not 9x!!!!!! please someone help me! : Wherever you go, there you are, and you wish you were somewhere else :
-
I am using ShellExecute to open another program which is located in a subdirectory. I do this by calling it with the file param as the filename, and the directory name as the subdirectory. It works under win2k/xp/nt but not on win95/98/ME....If anyone knows why and how I can fix it it would be of amazing help! So imagine the directory is 'stuff' and the file is 'thing.exe' I call ShellExecute(NULL,NULL,"thing.exe",NULL,"stuff",SW_SHOW); This works fine in 2k but not 9x!!!!!! please someone help me! : Wherever you go, there you are, and you wish you were somewhere else :
did you add the Microsoft layer for unicode to your 9x project. here is the text that is found at that link:
-
Add the following two files to your project:
-
UnicoWS.dll -- the Microsoft Layer for Unicode DLL
-
UnicoWS.lib -- the LIB file to which you link
Note that the Microsoft Layer for Unicode does not automatically load from the $(WINDOWS) or $(WINSYS) directories. Thus, do not put UnicoWS.dll there unless you are running from a system process that is located there. Instead, keep the UnicoWS.dll in your application directory and call LoadLibrary yourself to ensure that you load the correct .dll.
-
-
Add the following to the link options for your application (note that these libraries are not separated by commas because that is how you add them to the link list):
- First, add the following: /nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib /nod:sensapi.lib.
- Then add UnicoWS.lib.
- Finally, add the libraries that the Microsoft Layer for Unicode uses explicitly: kernel32.lib advapi32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib version.lib mpr.lib rasapi32.lib winmm.lib winspool.lib vfw32.lib secur32.lib oleacc.lib oledlg.lib sensapi.lib. In this step, omit any libraries listed after advapi32.lib whose APIs are not used in your application. However, if your application uses another component, such as MFC, ATL, or CRT, be sure to include any libraries on which the component depends.
-
Compile your application.
There is other information on the Web page, I would follow the link from above. Kilowatt
-
-
I am using ShellExecute to open another program which is located in a subdirectory. I do this by calling it with the file param as the filename, and the directory name as the subdirectory. It works under win2k/xp/nt but not on win95/98/ME....If anyone knows why and how I can fix it it would be of amazing help! So imagine the directory is 'stuff' and the file is 'thing.exe' I call ShellExecute(NULL,NULL,"thing.exe",NULL,"stuff",SW_SHOW); This works fine in 2k but not 9x!!!!!! please someone help me! : Wherever you go, there you are, and you wish you were somewhere else :
Use "open" as the verb, not NULL. --Mike-- "COM didn't solve the old version of DLL hell - it just provided us with a new and improved version of hell." -- John Simmons, 1/22/2002 My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.