how to include OCX and DLL files

Geuis
05-27-2003, 08:14 PM
I am writing an application for work where all of our machines run winNT. Problem is that when I ran a test compile of the application at work today, the system was lacking several OCX and DLL files that are on my winXP computer at home. I have heard there is a way in VB when compiling a project to have it make an installer that will install all the necessary files that a program needs to run onto another computer.
I looked briefly through VB for this option, but could not find it. I would really appreciate any help on this matter.

edit:
nevermind this post. Already found how to add it in. Thanks.

Yhtomit
05-27-2003, 08:21 PM
Im having the same problem. My computer at home does not have all the OCX files that my computer at school does. I think I found a solution but im not sure, cause im not done downloading it yet. I could be completely wrong and completely inept but I was looking for a way to fix this problem and found something called a service pack which seems to be an update of files and such. The newest one for VB 6.0 is here:
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/sp5_en.aspx

Its about 130mb and im not sure yet if its gonna work but its worth a try.

Yhtomit
05-27-2003, 08:24 PM
Ok I think I am an idiot now. So how did you fix it. :)

Morphius12
05-27-2003, 08:43 PM
though I've never heard of VB making it's own compiler, there are MANY 3rd party programs that allow you to make installation .exes and there you can include any and all .dlls as well as any other files that are necessary for your program to run. Simply go to www.download.com and search for "Install Maker" or something similar... I personally sugest Install Vise.
I hope that is what you are looking for.

stinking_shoe
05-27-2003, 08:54 PM
Would it not also be possible to put it into a *.res (Resource file)?

I realize you can embed bitmap images, wav files etc. into the application itself, and then call upon them... not sure about dll's though. Does anybody know if you can call to a dll within a resource file?

Geuis
05-27-2003, 08:57 PM
In VB, goto Add-ins and then Add-in Manager. Click on Package and Deployment Wizard, then check Loaded/Unloaded and Load at Startup.
Hit ok. You should now have the Package and Deployment Wizard option under Add-ins.
I have not yet used it on my own program, but after researching, this is supposed to be the way to get VB to build its own installer with the required external system files your application may need.
Hope it helps.

Morphius12
05-27-2003, 09:02 PM
I'm sorry Geuis, I already knew about the Package and Deployment wizard and assumed that you did too, personally though, I do not like VB's package program which is why I referred you to the 3rd party software. My mistake

Callipso
05-28-2003, 07:12 PM
i'm having the same problem also and i was told all i gotta do is to convert my ocx files into res or rc files and make my app extract um on run if they dun exist but i din know how

aegis3ro
05-31-2003, 04:24 AM
hi
i am kind ow new in this forum
u know i am developing an complex app that requires lots of .OCX, .TLB, or .DLL files
right now i use the GKSETUP installer, but when i install on other pc's it gaives me lots of errs about missing system files

i tryed to copy all those files in a new dir and to use them on installer, but it keeps showing me errors

there r some files with longer path that i cant see in components or reference screen, so i cant relalise wich r those files

i think there must be another way to bind those files together

there is a screen shot with what i see sometimes

http://www.loguri.com/screen.jpg

can u tell me what to do?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum