Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2005

Tip: Looking for answers? Try searching our database.

The binding handle is invalid.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Colin Desmond - 22 Nov 2005 11:16 GMT
I have a COM component that performs logging in a managed MFC application.
The main body of the application is built using /clr, as are all of the MFC
and regular DLL's. The COM componet is not built using /clr.

When I make a call into the COM object from a "normal" C++ class (compiled
with /clr), everything is fine, but when it do it from a "ref" class I get
the following error when I try and call CoCreateInstance inside the COM
object:

The binding handle is invalid.

Does anyone know what might be causing this?

Thanks

Colin
Colin Desmond - 22 Nov 2005 11:21 GMT
> I have a COM component that performs logging in a managed MFC application.
> The main body of the application is built using /clr, as are all of the MFC
[quoted text clipped - 12 lines]
>
> Colin

Sorry, I forgot to mention that when I call into the COM object sucessfully,
that is in the main GUI thread of the application, whereas the failed calls
occur in a thread used by a System::Threading::Timer callback method.

Colin
Colin Desmond - 29 Nov 2005 20:03 GMT
Fixed it, turns out the DLL needed to be an MFC Extension one rather than a
regular one.

> > I have a COM component that performs logging in a managed MFC application.
> > The main body of the application is built using /clr, as are all of the MFC
[quoted text clipped - 18 lines]
>
> Colin

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.