CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615

    Question help with crash on Win98 and another simple question

    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,.





  2. #2
    Join Date
    Apr 2003
    Posts
    1,755

    Smile

    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

    Code:
    DWORD dwVal = MAKELONG(MAKEWORD(M4, M3), MAKEWORD(M2, M1));
    Hope it will help you

  3. #3
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Can't you give more information about the error? Is almost impossible to know why this error with such few information.

  4. #4
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    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.

  5. #5
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    If boundschecker does not help you feel free to post more information about your error.

  6. #6
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    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

  7. #7
    Join Date
    May 2002
    Location
    Somewhere over the rainbow
    Posts
    423
    i never got boundchecker to aid me in my projs =/
    its weird proggy..
    Bengi

  8. #8
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    i think it's very useful... come on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured