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".
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".
using the TVicLPT Active X control for writing to the parallel port of
the PC. It has been working quite well. The first system I installed
it was on a Windows 2000 machine. The Active X control .ocx file got
loaded into the C:/WINNT/SYSTEM32 directory. (I forget if I manually
copied the file to that directory or not).
Now I make up a runtime version .vxe of my VEE program. I get onto my
second machine which is a Windows XP machine. I copy the .ocx file
into C:/WINDOWS/SYSTEM32 directory and try to run the VEE runtime
version. Obviously, it complains that it can't find the Active X
control. So I figure that since the VEE runtime program was made up
with the Active X control reference in the C:/WINNT/SYSTEM32 directory
on the Windows 2000 machine and since that directory does not exist on
the XP machine, I should make up the runtime program on the Windows
2000 machine with the Active X control file .ocx in a common directory
to both Windows 2000 and Windows XP.
So on my Windows 2000 machine, I copy the .ocx file to the C:/Program
Files/Agilent directory, delete the .ocx file in the C:/WINNT/SYSTEM32
directory. Go to my VEE program and under Active X Control references,
make sure that the path of the Active X control is indeed C:/Program
Files/Agilent. I run the program, it works. So now I create a runtime
version of this program on the Windows 2000 machine.
I run the program on the Windows XP machine (after copying the .ocx file
to C:/Program Files/Agilent directory). I thought this should solve
the problem, but now it complains that the Active X control has not
been registered.
Am I missing something here? I read in the VEE help pages, that when
browsing for Active X controls (when changing locations of the .ocx
file), VEE tries to "register" it. This registration might have
happened automatically in the Development version on the Windows 2000
machine. With a Runtime verison of VEE on my Windows XP machine, how
do I get it to register the Active X control, if that's the problem.
Any help would be greatly appreciated.
Vikram Boyapati
Test Engineer
Axiom Microdevices, Inc.
---
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".