Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: What "mapping" is all about? Pin
GuyM21-May-07 0:22
GuyM21-May-07 0:22 
AnswerRe: What "mapping" is all about? Pin
LiYS21-May-07 0:28
LiYS21-May-07 0:28 
AnswerRe: What "mapping" is all about? Pin
GuyM21-May-07 0:49
GuyM21-May-07 0:49 
GeneralRe: What "mapping" is all about? [modified] Pin
LiYS21-May-07 0:58
LiYS21-May-07 0:58 
QuestionSDI to MDI Pin
Anilkumar K V20-May-07 22:41
Anilkumar K V20-May-07 22:41 
AnswerRe: SDI to MDI Pin
GuyM21-May-07 0:36
GuyM21-May-07 0:36 
Question#include statements Pin
prithaa20-May-07 22:14
prithaa20-May-07 22:14 
AnswerRe: #include statements Pin
Hamid_RT20-May-07 22:27
Hamid_RT20-May-07 22:27 
AnswerRe: #include statements Pin
Perspx21-May-07 8:50
Perspx21-May-07 8:50 
GeneralRe: #include statements Pin
prithaa21-May-07 20:54
prithaa21-May-07 20:54 
QuestionGrabbing a word under the mouse Pin
Waldermort20-May-07 22:01
Waldermort20-May-07 22:01 
AnswerRe: Grabbing a word under the mouse Pin
Hamid_RT20-May-07 22:15
Hamid_RT20-May-07 22:15 
GeneralRe: Grabbing a word under the mouse Pin
Waldermort20-May-07 22:32
Waldermort20-May-07 22:32 
Questiontcscpy_s.inl Pin
subramanyeswari20-May-07 21:49
subramanyeswari20-May-07 21:49 
QuestionRe: tcscpy_s.inl Pin
GuyM21-May-07 0:42
GuyM21-May-07 0:42 
QuestionHelp,about destroy a CWnd Pin
kcynic20-May-07 21:32
kcynic20-May-07 21:32 
AnswerRe: Help,about destroy a CWnd Pin
Nelek21-May-07 1:01
protectorNelek21-May-07 1:01 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 3:42
kcynic21-May-07 3:42 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 5:32
Mark Salsbery21-May-07 5:32 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 12:45
kcynic21-May-07 12:45 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 12:55
Mark Salsbery21-May-07 12:55 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 19:34
kcynic21-May-07 19:34 
QuestionNetwork Management Pin
dharani20-May-07 21:27
dharani20-May-07 21:27 
AnswerRe: Network Management Pin
Hamid_RT20-May-07 22:10
Hamid_RT20-May-07 22:10 
QuestionCreateProcess problem. Pin
david bagaturia20-May-07 21:00
david bagaturia20-May-07 21:00 
Hi all.

I have problem wen I try to start process, wen I write:
<br />
try<br />
{<br />
STARTUPINFO lpStartupInfo;<br />
PROCESS_INFORMATION lpProcessInformation;<br />
<br />
memset(&lpStartupInfo,0,sizeof(STARTUPINFO));<br />
lpStartupInfo.cb = sizeof(lpStartupInfo);<br />
<br />
CreateProcess(<br />
  L"C:\\vaxo\\My.exe",<br />
  NULL,<br />
  NULL,<br />
  NULL,<br />
  FALSE,<br />
  CREATE_NEW_CONSOLE,<br />
  NULL,<br />
  NULL,<br />
  LPSTARTUPINFO lpStartupInfo,<br />
  LPPROCESS_INFORMATION lpProcessInformation<br />
);<br />
}<br />
<br />
catch()<br />
{<br />
// some error handle<br />
}<br />
<br />


in this code my program starts new process, but if I try to set console string I get some debag error:
"Unhandled exception at 0x77e4ae84 in Process.exe: 0xC0000005: Access violation writing location 0x00418312."
Console string is "C:\\vaxo\\My.exe", I try "C:\vaxo\My.exe", but I stile get this error message

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.