Click to See Complete Forum and Search --> : help with crash on Win98 and another simple question


indiocolifa
May 8th, 2003, 08:42 PM
hi!

two quick questions:

1) im writing a program under VC++ in Windows XP which does not crash in either Debug or Release builds, but trying on Windows 98 gives me a failure (red icon) at module METRONOMO.EXE (this is the name of the program...) Im using virtual pc with win98 to test it.

2) How i can make a DWORD (32-bit value) from eight 8-bit values... note i'm very stupid using bit operators.

e.g:

M1 = 0x00;
M2 = 0xFF;
M3 = 0xDC;
M4 = 0x03;

I want the DWORD = M1M2M3M4 (0x00FFDC03)

thank you very much,.




:cool:

rxbagain
May 8th, 2003, 08:58 PM
2) How i can make a DWORD (32-bit value) from eight 8-bit values... note i'm very stupid using bit operators.


You can do this


DWORD dwVal = MAKELONG(MAKEWORD(M4, M3), MAKEWORD(M2, M1));


Hope it will help you

Doctor Luz
May 9th, 2003, 05:56 PM
Can't you give more information about the error? Is almost impossible to know why this error with such few information.

indiocolifa
May 9th, 2003, 07:10 PM
I got BoundsChecker 7.0 TRIAL!!!

Yes! I will put to work this handy utility on my program... Sure it's a pointer going no where... ;)

thank you very much for ya help.

Doctor Luz
May 10th, 2003, 05:56 PM
If boundschecker does not help you feel free to post more information about your error. ;)

indiocolifa
May 10th, 2003, 08:35 PM
boundschecker reported 4 memory leaks and 4 resource leaks.

I fixed all errors.

Still crashes on program exit on Win98.

I will try Drwatson in w98... :P

Bengi
May 11th, 2003, 01:58 AM
i never got boundchecker to aid me in my projs =/
its weird proggy..

indiocolifa
May 11th, 2003, 11:42 AM
i think it's very useful... come on.