Unhandled Exceptions different in 64bit? / vs2008
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Unhandled Exceptions different in 64bit? / vs2008

Threaded View

  1. #1
    Join Date
    Dec 1999
    Posts
    85

    Unhandled Exceptions different in 64bit? / vs2008

    I have a program that works fine in 32bit mode on vs6.

    but in 2008 64bit it sometimes gets an unhandled exception crash in the following code (PostMessage line):-

    Is something different in 64bit vs2008? error is: Access violation reading location


    if(wnd && ::IsWindow(wnd->m_hWnd))
    {
    try
    {
    wnd->PostMessage(WM_COMMAND,MAKELONG(0x01,BN_CLICKED),(LPARAM)(wnd->GetDlgItem(0x01))->m_hWnd); // post ok to message
    }
    catch(...)
    {

    // do nothing
    }
    }
    Last edited by hobnob; February 5th, 2013 at 06:32 AM.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center