status--Works with CString, evidently I did something wrong the first time. Used dumpbin and curiously there is no "open" function that I see in shell32.dll, so I'm using the original ShellExecute version and then calling WinExec if error ==SE_NO_ASSOC
Ok, great that works!!!! But I don't know why... To quote the MSDN library, "You can freely substitute CString objects for const char* and LPCTSTR function arguments." My filename was already a CString, so I set a temp CString equal to the RunDLL command (cut-and-pasted from above so...
Noluck with WinExec, concatenated my filepath and name onto rundll32.exe shell32.dll,OpenAs_RunDLL as a CString, returns ERROR_BAD_FORMAT. I've written my own version with standard open dialog which lets user select .exe directly, it's just nicer and more consistent to use the open with...
Hi--
How do I call the "open with" dialog in 2000????
I've been using the following code to open a text file with unusual extension for viewing or call the "open with" dialog if user has not registered a favorite viewer/editor...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.