Click here to Skip to main content
15,886,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to write UnitTest for a class derived from MFC class like CWinApp? Pin
pk jain28-Jun-13 19:27
pk jain28-Jun-13 19:27 
AnswerRe: how to write UnitTest for a class derived from MFC class like CWinApp? Pin
Stefan_Lang4-Jul-13 2:52
Stefan_Lang4-Jul-13 2:52 
QuestionHow to put checkboxes in any column of ListVIew Control in mfc.? Pin
mbatra3127-Jun-13 20:14
mbatra3127-Jun-13 20:14 
AnswerRe: How to put checkboxes in any column of ListVIew Control in mfc.? Pin
«_Superman_»27-Jun-13 20:48
professional«_Superman_»27-Jun-13 20:48 
AnswerRe: How to put checkboxes in any column of ListVIew Control in mfc.? Pin
_Flaviu27-Jun-13 21:14
_Flaviu27-Jun-13 21:14 
QuestionHow to convert office to pdf with acrobat in VC++? Pin
liuli778627-Jun-13 16:16
liuli778627-Jun-13 16:16 
SuggestionRe: How to convert office to pdf with acrobat in VC++? Pin
Richard MacCutchan27-Jun-13 21:19
mveRichard MacCutchan27-Jun-13 21:19 
QuestionCreateProcess return code 1 however Process does not start Pin
ForNow27-Jun-13 6:03
ForNow27-Jun-13 6:03 
Hi,

I am getting back a 1 from CreateProcess indicting success however the process never takes off

I can cann't find it in TaskManager Either

Here is the code this code used to work I just cleaned up my computer tried re-building the app

C++
strncpy(&herc_command[0],"HERC_CMD.EXE ",13);

         memset(&si,0,sizeof(si));
         si.cb= sizeof(si);



           sa.nLength =  sizeof(sa);
           sa.lpSecurityDescriptor = NULL;
           sa.bInheritHandle = TRUE;     // Hercmd will inherit this event

           hutil_module = GetModuleHandle("HENGINE");


          hercgui_addr = GetProcAddress(hutil_module,"hercgui_proc");

          if (hercgui_addr == NULL)
               errcd = GetLastError();

          strncpy(&herc_parm[0],&hercgui_addr,8);



       return_code = CreateProcess((LPCSTR) &herc_command[0],      // command
                                   (LPCSTR) &herc_parm[0],         // paramter
                                   (LPCSTR) &sa,
                                   NULL,
                                   TRUE,
                                   (DWORD) NULL,
                                   NULL,
                                   NULL,
                                   &si,
                                   &pi);

    if (return_code == 0 )
        errcd = GetLastError();

AnswerRe: CreateProcess return code 1 however Process does not start Pin
Santhosh G_27-Jun-13 6:59
Santhosh G_27-Jun-13 6:59 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
ForNow27-Jun-13 8:15
ForNow27-Jun-13 8:15 
AnswerRe: CreateProcess return code 1 however Process does not start Pin
David Crow27-Jun-13 10:36
David Crow27-Jun-13 10:36 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
ForNow27-Jun-13 10:55
ForNow27-Jun-13 10:55 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
Freak3027-Jun-13 21:43
Freak3027-Jun-13 21:43 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
ForNow28-Jun-13 4:51
ForNow28-Jun-13 4:51 
QuestionRe: CreateProcess return code 1 however Process does not start Pin
David Crow28-Jun-13 5:12
David Crow28-Jun-13 5:12 
AnswerRe: CreateProcess return code 1 however Process does not start Pin
ForNow28-Jun-13 5:21
ForNow28-Jun-13 5:21 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
David Crow28-Jun-13 5:30
David Crow28-Jun-13 5:30 
GeneralRe: CreateProcess return code 1 however Process does not start Pin
ForNow28-Jun-13 5:39
ForNow28-Jun-13 5:39 
QuestionHow to change access database password with CDatabase? Pin
Anorexic Tribble27-Jun-13 1:04
Anorexic Tribble27-Jun-13 1:04 
AnswerRe: How to change access database password with CDatabase? Pin
André Kraak27-Jun-13 8:46
André Kraak27-Jun-13 8:46 
GeneralRe: How to change access database password with CDatabase? Pin
Anorexic Tribble25-Jul-13 21:27
Anorexic Tribble25-Jul-13 21:27 
QuestionIcon on Button not display in XP. Pin
Le@rner26-Jun-13 19:32
Le@rner26-Jun-13 19:32 
AnswerRe: Icon on Button not display in XP. Pin
Richard MacCutchan26-Jun-13 20:45
mveRichard MacCutchan26-Jun-13 20:45 
GeneralRe: Icon on Button not display in XP. Pin
Le@rner26-Jun-13 22:02
Le@rner26-Jun-13 22:02 
GeneralRe: Icon on Button not display in XP. Pin
Richard MacCutchan26-Jun-13 22:24
mveRichard MacCutchan26-Jun-13 22:24 

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.