An unhandled exception of type 'System.Runtime.InteropServices.COMException'

  • Thread starter Thread starter martin
  • Start date Start date
M

martin

Hi,

I got this error while using my OCX, build in C++, when I use .NET
2005. My OS is Windows XP x64 and using Microsoft Visual Studio 2005.
DotNet framework is 2.0 x64.

Before, I didn't encounter any problem using my OCX using 1.1 version
of .net framework and Windows XP Prof. But when I upgrade into 64-bit
operating system, my OCX won't work anymore.

When I try to debug my C# code, I got an error break at
((System.ComponentModel.ISupportInitialize)(this.myOCX)).EndInit();



Any help please
 
Your OCX is 32 bit, your C# application must be 32 bit too. Compile with the
target platform set to X86.

Willy.

| Hi,
|
| I got this error while using my OCX, build in C++, when I use .NET
| 2005. My OS is Windows XP x64 and using Microsoft Visual Studio 2005.
| DotNet framework is 2.0 x64.
|
| Before, I didn't encounter any problem using my OCX using 1.1 version
| of .net framework and Windows XP Prof. But when I upgrade into 64-bit
| operating system, my OCX won't work anymore.
|
| When I try to debug my C# code, I got an error break at
| ((System.ComponentModel.ISupportInitialize)(this.myOCX)).EndInit();
|
|
|
| Any help please
|
 
Back
Top