954,119 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Running a VB app on pc without VB installed

Hi everyone,

I have written an application to communicate with an Access database. Everything works fine when i compile it. I can run the compiled .exe file on the pc which has VB 6 installed but when i transfer to a pc that does not have a copy of VB on it, the file will not run. It gives an error saying MSADODC.OCX not found or not registered.
I copied this file from my other pc into the \\windows\system32 folder but then another file was missing.
Is there something i can do other than install copy of VB.

Thanks

robbie_j0
Newbie Poster
4 posts since Oct 2005
Reputation Points: 10
Solved Threads: 0
 

After you compiled your project with 'Make', did you use the Package and Deployment Wizard? This collects any dependancy files (.DLL, .OCX etc) and includes them in an Install package.

Just copying the .EXE file to another PC isn't going to work.

w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
 

Check your controls in the app!

You can put all the controls used in the same directory as the program.
That folder is checked first before the Windows or Windows System folder. This also reduces the chance of DLL conflict, and/or overwriting their DLL's. if they choose to uninstall (assuming you have an installer created)

Kegtapper
Junior Poster
116 posts since Oct 2005
Reputation Points: 13
Solved Threads: 4
 

I just wanted to clarify that you dont have to install VB...
You just need the runtime module...
as in: vbrun50.exe or vbrun60.exe

Thong_Ispector
Practically a Master Poster
638 posts since Nov 2004
Reputation Points: 16
Solved Threads: 19
 

Did you ever complete that?

Kegtapper
Junior Poster
116 posts since Oct 2005
Reputation Points: 13
Solved Threads: 4
 

you have to register msadodc.ocx on the system without vb

achilles8
Newbie Poster
3 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Hello
you must collects any dependancy files (.DLL, .OCX etc) and includes them in an Install package.
use my free tool in Attach ... it's free to use
and you need to register ocx & dll with any setup program
you can use my free setup too :confused:
http://www.4shared.com/file/1069078/3e4d904c/Firstsoft.html

good luck

Attachments Project1.zip (10.87KB)
Firstsoft
Newbie Poster
1 post since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

thanks !!!

achilles8
Newbie Poster
3 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Dear

I am facing the same problem. Did u guyz get d solution of it?

can u tell me the whole procedure, plz?

My program is in VB and database is in MS ACCESS.

Regards

Abed

romel_abed
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

The solution is already given in the previous posts... Wonder why the OP didn't get back.

Jishnu
Posting Pro
518 posts since Oct 2006
Reputation Points: 193
Solved Threads: 25
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You