CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Dec 1999

    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))
    wnd->PostMessage(WM_COMMAND,MAKELONG(0x01,BN_CLICKED),(LPARAM)(wnd->GetDlgItem(0x01))->m_hWnd); // post ok to message

    // 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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.