AnsweredAssumed Answered

vrf Using ActiveX Control References in a loaded library

Question asked by gregwale on May 3, 2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 10 (filtered)"><style><!-- /* Font Definitions */ @font-face     {font-family:Tahoma;     panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {margin:0in;     margin-bottom:.0001pt;     font-size:12.0pt;     font-family:"Times New Roman";}a:link, span.MsoHyperlink     {color:blue;     text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed     {color:purple;     text-decoration:underline;}span.EmailStyle17     {font-family:Arial;     color:navy;}@page Section1     {size:8.5in 11.0in;     margin:1.0in 1.25in 1.0in 1.25in;}div.Section1     {page:Section1;}--></style></head><body lang=EN-US link=blue vlink=purple><div class=Section1><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>My suggestion is to install the dll on allyour test systems because the alternative would be to use DCOM which can be apain. </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>To use DCOM take a look at VEE’s Functionand Object Browser / Built-in Functions / ActiveX Automation / Create Object.The description mentions that there is an optional second parameter |hostname>so the dll can be located remotely if you want to try that. For DCOM you musthave an NT type of network, not Win98 peer to peer (unless maybe you have userlevel sharing), and log in with the same user name and password, unless youhave DCOM configured to allow another login using the DCOM config panel andetc. </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Also, if you execute VEE’s ImportLibrary on a VEE User Function library, all the ActiveX references areautomatically merged, but unless you are using DCOM, the DLL must still beinstalled locally to execute. </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>I know the above both apply to ActiveX AutomationReferences  – I'm not sure about ActiveX controls which have a GUI.A lot of control libraries install both types. </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Greg Wale</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><a href="http://www.passtechnologies.com/">www.passtechnologies.com</a></span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----
<b><span style='font-weight:bold'>From:</span></b> martin.lentz@nokia.com[mailto:martin.lentz@nokia.com]
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, April 29, 20043:42 AM
<b><span style='font-weight:bold'>Subject:</span></b> Using ActiveX ControlReferences in a loaded library</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi VRF'ers</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I have a problem with an ActiveX Control. We're using the"NcPortIO" control to cotrol an instrument connected to the LPT port.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>The instrument is controled by a dedicated Vee-driver (a veelibrary, written by us selves, with different commands for the instrument).</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>My problem is, that it seems, that the ActiveX ControlReference needs to be placed on the "Main" function of my main veelibrary. As not all our test systems use this instrument, it would be nice, ifwe could place the ActiveX Control Reference in the driver library, so that wedon't need to install the NcPortIo dll on all our test systems.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Does anybody have a suggestion for this?</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>B.R.</span></font></p></div><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div><div><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Martin</span></font></p></div></div></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>  

Outcomes