J
Jake Thompson
I don't have the option of using a debugger and want to see a value of
a char * field. How do I print a char * to a file?
I tried this but this does not print the value
FILE *fh;
fh = fopen("c:\\hold\\err_dll.txt", "w");
fputs( "I am in the dll", fh);
fprintf( fh, "%c", pszDBName); <----This is the char * value I want to
print
fclose(fh);
ideas?
a char * field. How do I print a char * to a file?
I tried this but this does not print the value
FILE *fh;
fh = fopen("c:\\hold\\err_dll.txt", "w");
fputs( "I am in the dll", fh);
fprintf( fh, "%c", pszDBName); <----This is the char * value I want to
fclose(fh);
ideas?