I write header file "ooo.h" and want to write this below text in ooo.h
#define X "123"
This below is some part of my code
************************************************
FILE *outp;
CString output_filename;
Output_filename = "ooo.h";
outp = fopen(output_filename, "w");
fprintf(outp, "#define X "123" ");
fprintf(outp, "\n");
if (output_filename)
{
fclose(outp);
}
************************************************
When I compile program there are 2 error messages happen cause by this line
fprintf(outp, "#define X "123" ");
I change that line to
fprintf(outp, "#define X 123");
So I can compile program and it write
#define X 123
but I want
#define X "123"
If you know how to solve my problem? Please tell me.
Thank you.