How to use Windowless ActiveX.dll in my project

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 11
Reputation: cyman73 is an unknown quantity at this point 
Solved Threads: 0
cyman73 cyman73 is offline Offline
Newbie Poster

How to use Windowless ActiveX.dll in my project

 
0
  #1
Aug 17th, 2006
Hello,
I am trying to use a ActiveX component (written by someone else) in my Visual Basic 2005 project. I am new to VB2005, so please bear with me.

I added the COM reference to the ActiveX.dll class to the project.
I choose the Toolbox Items from COM Components Tab and added the ActiveX component to the General Toolbox.
I am able to place this ActiveX component in the Main.vb form, I can see the object's properties but I encounter a problem when I attempt to run (F5) the project. I get the following error:

at System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
Unable to get window handle.. Windowless ActiveX are not supported.

What am I doing wrong? Your help is greatly appreciated.

Thank you.
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: How to use Windowless ActiveX.dll in my project

 
0
  #2
Aug 19th, 2006
The last line tells you, you can't. Is it windowless or is vb not seeing the window?
  1. Unable to get window handle.. Windowless ActiveX are not supported.
I don't think there is anyway to fake it.
Last edited by waynespangler; Aug 19th, 2006 at 1:44 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC