MFC C++ Compiler Options difference between the debug and release
-
Hi I just used SnagIt Screen Capture to go over window pane by window pane of both the compiler options for debug and release and the only debug and release version is the run time library 1) release its Multi threaded DLL /MD while in Debug its debug DLL /MDd However I keep on getting different compile errors at one point I had a clean build for Debug while Release was giving me errors
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
-
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: