Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / VB6 Runtime files?

Author
Message
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Mar 2004 17:21
Sorry to ask this here on tgc but I know there a bunch of good vb programmers here so...

Problem: I am trying to deploy a vb.net app that is using mscomm32.ocx control (COM) onto a machine that does not have any development environment on it (vb6 or .net). I can deploy the app ok and register the ocx on the machine, problem starts when attempting to run the app - It complains about a license for the control.

I am looking into vs.net license compiler to generate the file but I am also interested in possibly deploying the vb6 runtime with the app which would solve the whole thing right quick. Does anyone know where I can obtain the "vb6 runtime files" as a single package, or which files are contained in the vb6 runtime that I could add to the deployment?

thanks for any help on this
CR


"What the... Moooooooo!"
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Mar 2004 17:27 Edited at: 16th Mar 2004 17:30
You never heard of google or microsoft website!

Put this into google 'microsoft vb6 runtime' and lo and behold you get:

http://www.microsoft.com/downloads/details.aspx?FamilyID=05ae09e6-082a-4cd1-99cd-8911b6034c20&DisplayLang=en

[EDIT] Bit concerned that Win XP not listed in list of OS's. I run VB6 on my WinXP so I presume it's just an oversight

Boo!
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Mar 2004 17:32
This document explains what files are in the exe:

http://support.microsoft.com/default.aspx?scid=kb;en-us;290887

Boo!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Mar 2004 17:35
Quote: "You never heard of google or microsoft website!"

Oi! Its my job to put in sarcastic comments.


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Mar 2004 17:54
I am a bit daft these days. I actually searched this and was on the ms page but when I saw "..sp5.." I glossed past it thinking it was sp5 something or other for vs6 (idiot me)

anyway thanks - going to fix some stuff now



"What the... Moooooooo!"
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Mar 2004 20:12
well, having the vb6 runtime on the target machine doesn't help with the "Class is not licensed for use" error. I was somehow able to miraculously gengerate a .license file using LC.exe but the redeploy still fails

arse!


"What the... Moooooooo!"
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 16th Mar 2004 21:20
Spooky, XP probably has them shipped with it.

Level Maker 3D: www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: www.levelmaker3d.co.uk/ide.asp
also: www.levelmaker3d.co.uk/KrazyKarts/ & www.DigitalOmega.Net
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Mar 2004 23:15
yeah, as well as the .NET Framework


"What the... Moooooooo!"
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 17th Mar 2004 07:07 Edited at: 17th Mar 2004 07:07
I might just add that the whole VB6 runtime isn't essential for the app to run but only the OCX controls that were used at design time. This is usually just "comctl32.ocx" and any ones you added in the "Components" menu.

They should be able to be obtained from and then placed in the WindowsSystem(32) directory to work. However, you will have to register them on the users machine which can be done through regsvr32 or automatically with some installation apps.

Just in case you didn't realise. I usually do this because the Runtimes are around 5mb when the ocx is just 500kb.

As for the licensing problem, I have absolutely no idea what it means or how it can be fixed.


"Computers are useless they can only give you answers."
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Mar 2004 14:33
exeat,

I am only using mscomm32.ocx, which I included in the installer and also is registered during installation. This apparently a problem with .net com interop vs Ole Automation.

If I make a vb6 installer with a program that has mscomm32.ocx, and I install on a target machine with no vb6 runtime, it installs and runs fine.


"What the... Moooooooo!"
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 17th Mar 2004 14:44
Maybe this helps:
Quote: "A distribution created with the Setup Wizard only allows a run-time license, while the AddObject method requires a design time license.
RESOLUTION
Add the control you want to use into a class that is saved in a Visual Class library or into a class created with the DEFINE CLASS command. Next, add an instance of the class at run-time instead of adding the control. Please see the MORE INFORMATION section for details.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. "


Me, I'll sit and write this love song as I all too seldom do
build a little fire this midnight. It's good to be back home with you.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Mar 2004 15:35
empty,

do you have the link to where you saw that?


"What the... Moooooooo!"
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 17th Mar 2004 15:48
Quote: "do you have the link to where you saw that?"

That was psted by someone on Borland's dev forums (registered users only). But he said he copied it straight from the MS Foxpro site. Hold on a minute...

Me, I'll sit and write this love song as I all too seldom do
build a little fire this midnight. It's good to be back home with you.
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 17th Mar 2004 16:02
http://support.microsoft.com/default.aspx?scid=kb;en-us;192693.
I don't know if that applies to VB, though.

Me, I'll sit and write this love song as I all too seldom do
build a little fire this midnight. It's good to be back home with you.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Mar 2004 16:15
thanks empty. this is a similar symptom of an ocx control that I am seeing from vb.net deployment, but is not applicable.

thanks anyway tho!


"What the... Moooooooo!"

Login to post a reply

Server time is: 2024-09-21 14:54:50
Your offset time is: 2024-09-21 14:54:50