Click here to Skip to main content
15,911,786 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem importing mso97.dll Pin
Jamie Nordmeyer2-Jul-01 12:35
Jamie Nordmeyer2-Jul-01 12:35 
GeneralRe: Problem importing mso97.dll Pin
Bret Faller3-Jul-01 8:47
Bret Faller3-Jul-01 8:47 
GeneralDynamic query ... Pin
Hadi Rezaee2-Jul-01 8:32
Hadi Rezaee2-Jul-01 8:32 
GeneralRe: Dynamic query ... Pin
Carlos Antollini2-Jul-01 15:20
Carlos Antollini2-Jul-01 15:20 
GeneralRe: Dynamic query ... Pin
Hadi Rezaee2-Jul-01 17:10
Hadi Rezaee2-Jul-01 17:10 
GeneralProblem calling .exe from a dll Pin
2-Jul-01 7:23
suss2-Jul-01 7:23 
GeneralRe: Problem calling .exe from a dll Pin
2-Jul-01 9:10
suss2-Jul-01 9:10 
GeneralRe: Problem calling .exe from a dll Pin
#realJSOP3-Jul-01 5:35
professional#realJSOP3-Jul-01 5:35 
CreateProcess should work, even from within a DLL. All you have to do is wait for the DLL's initialization process to finish before calling CreateProcess.

I'm willing to bet that you're setting the first parameter to the path\filename of the program you're running, too. Try combining the path\filename with your commandline parameters (if any) and pass the whole shooting match as the *2nd* parameter (make the 1st parameter NULL). Also, if you're using a CString to build the commandline, cast it to an LPCTSTR like so:

CString sMyCmdLine = "C:\myfolder\myprogram.exe /param1 /param2";
CreateProcess(NULL, (LPCTSTR)sMyCmdLine,....);


GeneralCOM crashing Pin
Chris Klecker2-Jul-01 7:03
Chris Klecker2-Jul-01 7:03 
GeneralADO Pin
Gérald Mercet2-Jul-01 6:41
Gérald Mercet2-Jul-01 6:41 
GeneralRe: ADO Pin
Carlos Antollini2-Jul-01 6:58
Carlos Antollini2-Jul-01 6:58 
Generalbinding member variables Pin
2-Jul-01 5:13
suss2-Jul-01 5:13 
GeneralRe: binding member variables Pin
3-Jul-01 5:29
suss3-Jul-01 5:29 
GeneralReturn variable Pin
Giuseppe Vitali2-Jul-01 0:19
Giuseppe Vitali2-Jul-01 0:19 
GeneralRe: Return variable Pin
Anders Molin2-Jul-01 4:49
professionalAnders Molin2-Jul-01 4:49 
GeneralRe: Return variable Pin
Giuseppe Vitali2-Jul-01 5:54
Giuseppe Vitali2-Jul-01 5:54 
GeneralRe: Return variable Pin
Mukkie2-Jul-01 8:19
Mukkie2-Jul-01 8:19 
Generalxml validator Pin
1-Jul-01 23:55
suss1-Jul-01 23:55 
GeneralRe: xml validator Pin
markkuk2-Jul-01 0:46
markkuk2-Jul-01 0:46 
GeneralTemplate Question Pin
1-Jul-01 23:47
suss1-Jul-01 23:47 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 0:26
Martin Vladic2-Jul-01 0:26 
GeneralRe: Template Question Pin
2-Jul-01 0:41
suss2-Jul-01 0:41 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 23:30
Martin Vladic2-Jul-01 23:30 
GeneralRe: Template Question Pin
Martin Vladic2-Jul-01 23:44
Martin Vladic2-Jul-01 23:44 
GeneralRe: Template Question Pin
Tomasz Sowinski2-Jul-01 1:12
Tomasz Sowinski2-Jul-01 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.