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 / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

System.InvalidCastException - QueryInterface Failed - error.jpg (0/1)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony C. - 30 Apr 2004 19:17 GMT
Hi,

    I have a vb6 active-x dll that I want to use in my vb.net
program. However I'm getting the above System.InvalidCastException
Query Interface faild for .....myPrintClass

       I admit , I've never done interop from vb6 to vs.net before
except for other commercial com components that I use that work just
fine.

               Can anyone tell me what I'm missing or what I need
to review here?

            Thanks, Tony C.
Tony C. - 30 Apr 2004 19:33 GMT
>Hi,
>
[quoted text clipped - 10 lines]
>
>            Thanks, Tony C.

Oops! Sorry- I had registered the wrong copy of the dll I was
working with and that caused the whole problem...

            thanks  Tony C.
>    
-- I guess that would do the trick , wouldn't it??? :-)

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.