Problem with VC++
Posted on 1998-08-11
I wrote a program who must read from a file a path from an executable program and execute it .
f=fopen("c:\\file.txt","r"); //in file.txt is the path (let say it is "C:\\prg.exe")
_spawnlp(_P_NOWAIT,s,s,0); //should execute the program prg.exe
I compiled this in Borland 4.5 and it works
When I compiled this in VC++ 5.0 wouldn't work ( the program doesn't respond (in Windows 95))
Can somebody give me an example of a correct code ?