c++.windows.32-bits - TRACE() and CString error
- Andy C (38/38) Jan 28 2004 I just finished converting an MSVC++ program over to DMC. There were
I just finished converting an MSVC++ program over to DMC. There were a few hickups but thanks to Walter and Jan I solved the problems and got my image processing program to work about 10% faster! I will post the final set of things I had to do once I have time to collect my notes (mostly write function to take the place of MFC 6.0 functions, easy if you download the MS SDK (do it now)). I did find one final problem that has me stumped and may be an issue to others. I suspect that it is a function of too many '\' in a row, but it may indicate a larger promlem... When I compile the following code: ////////// #include "afx.h" int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CString sTemp1; sTemp1 = "abcd\\"; TRACE("\nTrace output: %s\n",sTemp1); return 0; } /////////////// I get the following output [00001] Trace output: abcd\ [00002] Detecting memory leaks! [00003] Dumping objects -> [00004] ..\strcore.cpp(76) : [00005] {72} [00006] normal block at 0x00A716D4, 18 bytes long. [00007] Data: < abcd> 01 00 00 00 05 00 ..... [00008] ....... MFC is linked as a .LIB and my compile settings are: CFLAGS = -Ae -mn -C -WA -S -3 -a8 -c -gf LFLAGS = /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 DEFINES = -D_DEBUG=1 -D_MBCS=1 -D_X86_=1 -D_MT=1 Regards Andy C
Jan 28 2004