Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSINET.OCX Problem

Status
Not open for further replies.

murphyc

Programmer
Sep 6, 2002
25
HK
When i run my exe program. The windows display MSINET.OCX is missing. I only copy the exe to the user. Do i need to copy the MSINET.OCX to the user too? Or any good method?

Thanks
 
Use an Installer package to make sure that all dependency files are included. The simple and obvious choice is the VB Packaging and Distribution Wizard (Add-Ins|P & D W) or MSInstaller. It's a free download from MS here:

There are other Installers available as well, including INNO from:

I can't help noticing that although you've asked 11 questions to date, you've only acknowledged 4 answers, and you haven't marked any of the answers as helpful/expert. If the answers work for you, let us know in an appropriate manner. If they don't, also let us know so we can maybe refine our answers.

Read faq222-2244 either way - it may help you ask better questions, and get better answers

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
murphyc,

Not only to you need to copy the file to the user's machine, you need to register it as well (using regsvr32).

(And not only that control, either, if the user hasn't got the VB Runtimes installed!)

This is basically so that Windows knows of the files wherabouts and how to use it. The reason to use an installer like the Install and Package Wizard is that it'll analyse your Project and bundle up the files/dll's/control that you use and automatically register them when running setup.

When you run your exe, it calls for functions in the various depenency files. If it can't find them, it'll crash an' burn!

If you don't want to use an installer you can try copying the necessary files to the program's install directory and hope that the system picks them up, but I wouldn't advise it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top