MFC C++ Compiler Options difference between the debug and release
-
ForNow wrote:
...while Release was giving me errors
And those would be?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks
-
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks
-
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks
LPCTSTR
= Long Pointer to Const Tchar STRing This will beconst wchar_t *
for Unicode builds andconst char *
for ANSI/multi-byte builds. -
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks
This has nothing to do with compiler options, per se. Use the
_T()
macro for the format string."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
LPCTSTR
= Long Pointer to Const Tchar STRing This will beconst wchar_t *
for Unicode builds andconst char *
for ANSI/multi-byte builds. -
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string. The Doc says the string is of type LPCTSTR I am working on Release when I get a clean build from Release I should have no problem with Debug I hope Thanks
ForNow wrote:
mainly with CString.Format (I was using it like the C sprintf) and it looked for const wchar_t * for the format string
Please, next time show the exact error message together with a line (or a couple of lines) causing the error.
-
English perhaps?
-
English perhaps?
-
Really? His sentence structure was more that of a Mandarin speaker using bad English. :wtf:
-
Really? His sentence structure was more that of a Mandarin speaker using bad English. :wtf: