Click here to Skip to main content
15,881,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Spawn@Melmac10-Mar-10 6:32
Spawn@Melmac10-Mar-10 6:32 
Questionopen application in hidden mode Pin
JM22519-Mar-10 19:53
JM22519-Mar-10 19:53 
AnswerRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:09
professional«_Superman_»9-Mar-10 20:09 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:18
JM22519-Mar-10 20:18 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:22
professional«_Superman_»9-Mar-10 20:22 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:24
JM22519-Mar-10 20:24 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:32
professional«_Superman_»9-Mar-10 20:32 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:39
JM22519-Mar-10 20:39 
yes this will hide the command prompt but what about the other application which will launch through command prompt.

wchar_t szCommand[] = L"-m -l";//command line parameter for application

STARTUPINFO si;
::ZeroMemory(&si, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;

PROCESS_INFORMATION pi;

::CreateProcess(_T("myapp.exe"), szCommand, 0, 0, 0, 0, 0, 0, &si, &pi);

GeneralRe: open application in hidden mode Pin
Rozis10-Mar-10 14:41
Rozis10-Mar-10 14:41 
AnswerRe: open application in hidden mode Pin
R@jeev K R9-Mar-10 20:14
R@jeev K R9-Mar-10 20:14 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:14
JM22519-Mar-10 20:14 
GeneralRe: open application in hidden mode Pin
R@jeev K R9-Mar-10 20:40
R@jeev K R9-Mar-10 20:40 
QuestionType casting LPSTR Pin
RakeshManohar9-Mar-10 19:22
RakeshManohar9-Mar-10 19:22 
AnswerRe: Type casting LPSTR Pin
Rajesh R Subramanian9-Mar-10 19:30
professionalRajesh R Subramanian9-Mar-10 19:30 
AnswerRe: Type casting LPSTR Pin
Mohan Ramachandra9-Mar-10 19:32
Mohan Ramachandra9-Mar-10 19:32 
GeneralRe: Type casting LPSTR Pin
RakeshManohar9-Mar-10 21:01
RakeshManohar9-Mar-10 21:01 
QuestionRe: Type casting LPSTR Pin
CPallini9-Mar-10 20:36
mveCPallini9-Mar-10 20:36 
AnswerRe: Type casting LPSTR Pin
Rajesh R Subramanian9-Mar-10 23:12
professionalRajesh R Subramanian9-Mar-10 23:12 
JokeRe: Type casting LPSTR Pin
CPallini9-Mar-10 23:30
mveCPallini9-Mar-10 23:30 
QuestionDisplay message box at the time locking the system Pin
NiceNaidu9-Mar-10 18:38
NiceNaidu9-Mar-10 18:38 
AnswerRe: Display message box at the time locking the system Pin
Mohan Ramachandra9-Mar-10 18:45
Mohan Ramachandra9-Mar-10 18:45 
GeneralRe: Display message box at the time locking the system Pin
NiceNaidu9-Mar-10 18:57
NiceNaidu9-Mar-10 18:57 
GeneralRe: Display message box at the time locking the system Pin
Rajesh R Subramanian9-Mar-10 19:28
professionalRajesh R Subramanian9-Mar-10 19:28 
GeneralRe: Display message box at the time locking the system Pin
NiceNaidu9-Mar-10 23:52
NiceNaidu9-Mar-10 23:52 
QuestionDoubt in using NULL pointer Pin
KASR19-Mar-10 18:13
KASR19-Mar-10 18:13 

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.