Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Distributing datasocket activeX-control

I created a custom OCX in VB6 + Measurement Studio 6 under XP which uses just datasocket (no other NI UI-Controls) for publishing on our website. I used the PDW of VB for creating the CAB and the html-file and it worked within the IE on localhost.

BUT on Clients (2K/XP) it doesn't work. A blank screen appears after downloading the activeX-control (the IE security settings are set correctly). I tried this on several different machines. After registering the controls (cwds.ocx, mycontrol.ocx) manually it worked in most cases, but sometimes it was even not possible to register the controls manually ("entry point... not found"). Additonally the message box "Evaluation Copy.." appears.

Why is it sometimes not possible to register the ocxs manually? Are there some dependecies? Do I need to register also: ninetbrw.ocx, nids.dll, aso?

Is there need to get license for the Datasocket Control, because the MStudiov6_LicenseFixer doesn't not list the datasocket control?

I definately appreciate YOur help!
0 Kudos
Message 1 of 5
(6,974 Views)
Make sure that your default security settings are correct to be able to view the activex control. You may have to add the URL to your "trusted sites" list.

If you can, I would include all dependent files listed in the PDW wizard.

As far as the "evaluation copy" window, you need to create a license package (LPK) for distribution. See: http://msdn.microsoft.com/library/default.asp?url=/workshop/components/activex/licensing.asp

Also, if you are passing any parameters to the control you need to specify a width and height or the control will seemingly "disappear". It's a weird activex thing.
0 Kudos
Message 2 of 5
(6,889 Views)
Hi Gerald,

I have done the same as you did. But I cannot able to open it in the Internet Explorer in my PC Itself.

I gave the address as "http://localhost/DSReader.HTM" I am getting an error. How to open the .HTM file in my local machine through Internet Explorer.

regards,
Ramkumar. D
Engineer.
Thanks,
Ramkumar.D
QuEST, INDIA.
0 Kudos
Message 3 of 5
(6,772 Views)
Hi Ramkumar,

which type of error do you get?
are you running a webserver on your local machine?
please specify your configuration and the error, otherwise it is hard for me to get any idea.

regards
Gerald
0 Kudos
Message 4 of 5
(6,770 Views)
Hi Gerald,

Thanks for your response.

After generating the .HTM file I can able to open it directly by double clicking it. ie., for example it opens in

D:\Backup_QI-037\Ramkumar\QI_0960\Assignments\DS Reader\Package\DSReader.HTM

path.

But I need to open using "http://" format (using Internet Explorer). For that I copied the "Package" folder generated by PDW of VB6.0 to "www" directly of NI and tried to open in IE by specifing

http://localhost/Package/DSReader.HTM

The following is the error message i am getting:
"Forbidden
Your internet address (QI-037.questgedc.com) is not allowed to retrieve documents from this server. "

I have enabled the Webserver in my local machine with default port settings and "Use log file" disabled.

What else I have to do to open the .htm file in the Internet Explorer in my local machine and also on the remote machine?

thanks in advance,
Ramkumar. D
Thanks,
Ramkumar.D
QuEST, INDIA.
0 Kudos
Message 5 of 5
(6,764 Views)