Skip to main content
gamedev.net
🔒 Locked

Running a program within a program

Started by Mulligan 3 replies 300+ views
Original Post
Mulligan
Mulligan
How do you write a line of code that executes another program?
niyaw
niyaw
ShellExecute is a good solution.
pawn69
pawn69
BOOL CreateProcess(
LPCTSTR lpApplicationName,
LPTSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCTSTR lpCurrentDirectory,
LPSTARTUPINFO lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
);
Mulligan
Mulligan
Bingo, thanks
Moh_Abed
Moh_Abed
i want to run a program (a process) but that program should accept a parameter ( a user name and password ) how can i determine these parameters and send them after execution.

also after i run it and want to close it but it also require to accept confirmation using a message box.
Mohammed Abed

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.