Problem to run nmake in a createprocess command 
Author Message
 Problem to run nmake in a createprocess command

Hi,

I am currently trying to create a windows-based
application in order to compile different projects !

To do so, the user need to select the project he wants to
use, and I should then get the latest code from the
SourceSafe database and compile it by using nmake in a
Createprocess command.

But, unfortunately, when doing so, nkmake only create
vc60.idb and vc60.pdd and nothing else.

I know nmake is working because when using it from a DOS
windows, I could build my project by typing :
namke /f hfplayer.mak

Here is how I do use the createprocess :

PROCESS_INFORMATION ProcessInformation;
STARTUPINFO                     StartupInfo;
DWORD                           dwError;
BOOL                            bfProcess;

memset(&StartupInfo,0,sizeof(StartupInfo));
StartupInfo.cb = sizeof( StartupInfo );
StartupInfo.lpReserved = NULL;
StartupInfo.lpDesktop = NULL;
StartupInfo.lpTitle = NULL;
StartupInfo.dwFlags = STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow = SW_MAXIMIZE;
StartupInfo.cbReserved2 = 0;
StartupInfo.lpReserved2 = NULL;

memset(&ProcessInformation,0,sizeof(ProcessInformation));

char szCmdLine[256] ;

sprintf(szCmdLine,"nmake.exe /B HFPlayer.mak" ) ;

bfProcess = CreateProcess
(NULL,szCmdLine,NULL,NULL,FALSE,0,NULL,                
                                "D:\\My Documents\\My
Dev\\HFPlayer",&StartupInfo,&ProcessInformation );

Anyhelp would be welcome !

Thanks !



Tue, 04 May 2004 17:58:45 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problem to run nmake in a createprocess function

2. Problem with "nmake" command

3. problem running nmake from CGI(Perl)

4. NMAKE Bad Command or File

5. Problem running application from DOS command

6. Problem running application from DOS command

7. Running NMake

8. command line build fails Second time using CreateProcess

9. CreateProcess with builtin commands finally works!

10. getting stdout from a CreateProcess command call

11. Redirecting std output with CreateProcess DOS command

12. CreateProcess Command Line

 

 
Powered by phpBB® Forum Software