Hi all,
First of all Thanks for all your last responses ,
Here I have one problem in debugging the below code.
It builds without any errors but it doesn't debugg or says some errors.
I created a exe file and when I try to run the file it doesn't run. It doesn't create a file in the C:\Temp drive
Any one could debug this?
I debugged this code in VS2005 as C project. Is there any change to be made in the system environmental set up? Any change in the VS studio settings?
Anyone help me? I am facing this problem last 48 hrs.
here, GVS = C:\temp
-------------------------------------------------test2.cpp--------------------------------
#include <stdio.h>
#include <stdlib.h>
#define ARG_ERROR 1
int main(int argc, char **argv)
{
FILE *fperr;
char CARTERR[255];
while(argc--)
printf("%s\n", *argv++);
#ifdef WIN32
sprintf( CARTERR,"%s\\%s",getenv("GVS"),_CARTERR);
#endif
if( argc < 3) {
printf( "Error in document\n");
fperr = fopen( CARTERR,"w");
fprintf( fperr,"%d:Error %s",ARG_ERROR);
fclose( fperr);
return( ARG_ERROR);
}
exit(EXIT_SUCCESS);
}