Binary disaster

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by StSchnell.

Hello community, hello Fred,
today I am working on a project with access to WinAPI. I coded a program and compiled it on my home office computer (Win95). Then I run the program in the office (computer with Win2000).
The program calls the debugger, to test some functions of WinAPI. After the program starts, I can not see the source code in the debug window, but the debugger works and I am only "blind"; it is a nice white window. If I start the same program on Win95 it works very well. So, I take the source code from the Win95 to Win2000 and compile it again (only for test), then I compare the binary code of the execute files, and, I can not believe it, found 29 differences.
2 differences are from my arguments, so it is allright. But I see a lot of like this, e. g.:
[00][D7][00]GetCurrentThreadID in Win2000 program
[FF][D7][00]GetCurrentThreadID in Win95 program
There are 25 differences only in [00] on Win2000 to [FF] or [F0] or [CC] or whatever in Win95 program.
What can I do to create full binary compatible programs for each windows plattform which works allright?
Thanks for tips
Bye
Stefan
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

I also have had problems when testing my code in Windows 2000, but it was not PB, it was Asm. It's not PureBasic's fault, it's Microsoft's. I can understand that some apps built for XP don't work in Windows 95, but what about the contrary? Why do they break forward compatibility this way? (sorry for the fussing, yesterday I spent a lot of time dealing with Windows 2000 'differences')

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

weird ?
plz post some sourcelines here to check it under different OS#s.

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by StSchnell.
Originally posted by Rings

weird ?
plz post some sourcelines here to check it under different OS#s.
Where can I find the sources?


StSchnell
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.
Where can I find the sources?
StSchnell
How did you compile without source ?

Its a long way to the top if you wanna .....CodeGuru
Post Reply