#define FILE_NAME "c:\cdc-saver\cdc.3ds"
g_Load3ds.Import3DS(&g_3DModel, FILE_NAME);
pls reply if you know! i need to get this finished TODAY....
Thx, Markus
Why do i get an error with this?
I just figuered out one problem just to get the next one
Here are two code snippets... why do i get an "warning C4129: ''c'' : unrecognized character escape sequence" warning???
Use double \\ in a string literal
#define FILE_NAME "c:\\cdc-saver\\cdc.3ds"
g_Load3ds.Import3DS(&g_3DModel, FILE_NAME);
#define FILE_NAME "c:\\cdc-saver\\cdc.3ds"
g_Load3ds.Import3DS(&g_3DModel, FILE_NAME);
#define FILE_NAME "c:\\cdc-saver\\cdc.3ds"g_Load3ds.Import3DS(&g_3DModel, FILE_NAME);
"I pity the fool, thug, or soul who tries to take over the world, then goes home crying to his momma."
- Mr. T
Try #define FILE_NAME "c:\\cdc-saver\\cdc.3ds"
The error is caused because in c, the ''\'' character means that the next character is part of an escape sequence, to let the programmer output or input things they normally couldn''t. For example, \" writes a ''"'' to the screen.
So when you have ''\c'' it thinks you are trying to do an escape sequence, but there isn''t one for ''\c''. Putting in ''\\'' works because that is the escape sequence for ''\''.
The error is caused because in c, the ''\'' character means that the next character is part of an escape sequence, to let the programmer output or input things they normally couldn''t. For example, \" writes a ''"'' to the screen.
So when you have ''\c'' it thinks you are trying to do an escape sequence, but there isn''t one for ''\c''. Putting in ''\\'' works because that is the escape sequence for ''\''.
you can also do this:
const char* FILENAME = "c:/cdc-saver/cdc.3ds";
totally unneccessary to use a #define for a string
None of those sollutions work........ i tried...
i don''t understand this.... when i start the program the screen flickers, and it does nothing....
i don''t understand this.... when i start the program the screen flickers, and it does nothing....
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement