The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Ulrike (3) [Avatar] Offline
Operating system: Windows 7 Ultimate 64bit (German)
The example MfcDataGridView (chapter 6) builds without any problems but when I run it I get an System.Runtime.InteropServices.SEHException in ProcessShellCommand at least when the new view (CWinFormsView derived) should be created.

The example runs without problems under Windows XP Professional 32bit (German)

Is there a special compiler switch or an extra option to get a CWinFormsView derived class running under Windows 7?
Ulrike (3) [Avatar] Offline
Re: System.Runtime.InteropServices.SEHException when running example
I found the cause of the problem.
The mfcmifc80.dll comes in a x86- and x64-version. On a x64 operating system the x64-version of mfcmifc80.dll is assigned to the GAC but for Win32 apps the x86-version is needed. So I simply copied the x86-version into the application local folder and all works well.
It's important to make sure to install the correct version of the mfcmifc80.dll when deploying the app!