471,348 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Error using unmanaged C++ OCX in C#.NET

I am trying to use an unmanaged C++ OCX in a C#.NET application.

This is generating the following error:
“Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))”

If I use this same OCX in an unmanaged C++ DLL, and call this DLL from
C#.NET the error does not happen.

How can I avoid this problem?

Thanks.
Rui Oliveira

Aug 22 '08 #1
1 5033
SOLVED!

http://support.microsoft.com/kb/146120/EN-US/
http://support.microsoft.com/kb/189065/en-us

I just override IsInvokeAllowed in your ActiveX Control.

Tks.
Rui

"Rui Oliveira" wrote:
I am trying to use an unmanaged C++ OCX in a C#.NET application.

This is generating the following error:
“Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))”

If I use this same OCX in an unmanaged C++ DLL, and call this DLL from
C#.NET the error does not happen.

How can I avoid this problem?

Thanks.
Rui Oliveira
Aug 22 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve Jaworski | last post: by
11 posts views Thread by James Crouch | last post: by
1 post views Thread by Rick | last post: by
5 posts views Thread by Jeff | last post: by
reply views Thread by =?Utf-8?B?Y2hlbG9tYW4=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.