AnsweredAssumed Answered

vrf Active X Control reference

Question asked by VRFuser on Nov 13, 2003
Thanks very much,  Mark,  Paco and Shawn for all your hints.  I
registered the .ocx file as described by Shawn and Paco and it worked.

Vikram.

-----Original Message-----
From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: Thursday, November 13, 2003 9:33 PM
To: VRF
Subject: [vrf] RE: Active X Control reference


Vikram...

> but now it complains that the Active X control has not
> been registered.

"Registering" an ActiveX library or control is the process of creating
registry entries that tell Windows (basically) what the ProgID is and
where the server is located. You use regsvr32.exe to register controls
or libraries.

The registry contains the path to the server, so you don't need to worry
about exactly where it is. The important thing is that once it's
registered, it doesn't move. To register a control or library, run:

regsvr32 <path to control>

Such as "regsvr32 c:usrprojTestTVicLPT.ocx" (or .dll if it's a
library). This can be conveniently done with a Execute Program object.
You can of course do it yourself and dispense with regsvr32 if you want.
Every control or library contains an exported function called
DllRegisterServer who's prototype is:

long __stdcall DllRegisterServer(void);

Just import this compiled function from the control or library and call
it directly from VEE and you're done. A successful call returns 0. Most
controls & libraries also contain a function called DllUnregisterServer
with the same prototype & return.
-SHAWN-


---
You are currently subscribed to vrf as: boyapati@axiom-micro.com To
subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to
"leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes