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

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
 
W

Willy Denoyette [MVP]

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
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top