Hi,
I have some 1000 lines of code which converts binary formatted log file obtained from the server to ascii readable format.When I am compiling it on windows using cygwin as IDE,I am able to get the desired output.The sample of output is as follows:
[0000] 04/12/2006 12:08:58 CCED0763 LCS: Graceful Switchover. Call Processing Stopped at 12:09:01
edi = 00000000 esi = 00f002fb ebp = 08cdd394 esp = 08cdd364
ebx = 08cdd36c edx = 08cdd3b0 ecx = 00000000 eax = 00000008
eflags = 00000216 pc = 01a8f3d4
Return Address Stack:
011b53fd(lcsRedActiveGswoP
endingFSM+
18d)
011b3b46(lcsRedundantActiv
eFSM+86)
011b27e6(lcsFSM+96)
011b2465(lcsRun+1b5)
0216542c(vxTaskEntry+c)
Stack (top = 0x8cdd364):
08cdd364: 08cdd3a8 08cdd3ec 00000000 00f002fb 08cdd394 08cdd364 08cdd36c 08cdd3b0
08cdd384: 00000000 00000008 00000216 01a8f3d4 08cdd3bc 011b53fd 00f002fb 08cdd3a8
08cdd3a4: 00000019 303a3231 31303a39 00000000 00000000 08cdd3d0 08cdd3c8 011b3b46
08cdd3c4: 08cdd3ec 08cdd3dc 011b27e6 08cdd3ec 00000000 00000000 08cdd450 011b2465
08cdd3e4: 08cdd3ec 00000000 0000000a 00000005 eeeeeeee 00000019 0000001c eeeeeeee
08cdd404: eeeeeeee ffffffff ffffffff ffffffff eeeeeeee eeeeeeee eeeeeeee 08c23374
08cdd424: 0226b472 084caf74 eeeeeeee eeeeeeee eeeeeeee eeeeeeee eeeeeeee 08c233f4
08cdd444: 0226af1a 084caf74 00000000 00000000 0216542c 00000000 00000000 00000000
08cdd464: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
08cdd484: 00000000 00000037 00873894 08b5b3f0 04c81b1c 0000c42f 00872e14 08cca5e0
08cdd4a4: 08cdea58 00065c78 00873160 02bd1e50 08ccd480 00000004 00000000 00000037
08cdd4c4: 00000037 00000000 00000000 00000000 00000000 00000000 08cca7a4 00000000
08cdd4e4: 00000000 00000000 0087328c 02b4c7c0 011b22b0 08cdd480 08ccd744 08ccd480
but when I ported the same code onto visual studio 2005 and compiling it ,it gives some junk output,the output from visual studio is
[0000] ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
ÌÌÌÌÌÌÌÌÌÌ
ÌÌÌÌ 0763 Graceful Switchover. Call Processing Stopped at 12:09:01
edi = 00f002fb esi = 08cdd394 ebp = 08cdd364 esp = 08cdd36c
ebx = 08cdd3b0 edx = 00000000 ecx = 00000008 eax = 00000216
eflags = 01a8f3d4 pc = 08cdd3a8
Interrupt level: 17477
Return Address Stack:
08cdd3a8(ebss+563e3a8)
Stack (top = 08CDD36C):
08cdd36c: 08cdd3ec 00000000 00f002fb 08cdd394 08cdd364 08cdd36c 08cdd3b0 00000000
08cdd38c: 00000008 00000216 01a8f3d4 08cdd3bc 011b53fd 00f002fb 08cdd3a8 00000019
08cdd3ac: 303a3231 31303a39 00000000 00000000 08cdd3d0 08cdd3c8 011b3b46 08cdd3ec
08cdd3cc: 08cdd3dc 011b27e6 08cdd3ec 00000000 00000000 08cdd450 011b2465 08cdd3ec
08cdd3ec: 00000000 0000000a 00000005 eeeeeeee 00000019 0000001c eeeeeeee eeeeeeee
08cdd40c: ffffffff ffffffff ffffffff eeeeeeee eeeeeeee eeeeeeee 08c23374 0226b472
08cdd42c: 084caf74 eeeeeeee eeeeeeee eeeeeeee eeeeeeee eeeeeeee 08c233f4 0226af1a
08cdd44c: 084caf74 00000000 00000000 0216542c 00000000 00000000 00000000 00000000
08cdd46c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
08cdd48c: 00000037 00873894 08b5b3f0 04c81b1c 0000c42f 00872e14 08cca5e0 08cdea58
08cdd4ac: 00065c78 00873160 02bd1e50 08ccd480 00000004 00000000 00000037 00000037
08cdd4cc: 00000000 00000000 00000000 00000000 00000000 08cca7a4 00000000 00000000
08cdd4ec: 00000000 0087328c 02b4c7c0 011b22b0 08cdd480 08ccd744 08ccd480 04bb2c90
I am just compiling the code on different IDE's.Please help me the steps that has to be taken care when compiled on visual studio 2005.
Please help me out at the earliest.