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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. crjones42

    ShellExecute, open with dialog, and win2k

    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
  2. crjones42

    ShellExecute, open with dialog, and win2k

    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...
  3. crjones42

    ShellExecute, open with dialog, and win2k

    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...
  4. crjones42

    ShellExecute, open with dialog, and win2k

    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...

Part and Inventory Search

Back
Top