• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Make Exe

hello,
I created a project that links to an ODBC data source.

I created it using the "Standard Exe" project in VB6.

It works fine on the development machine.

Moving it to another machine causes all sorts of error.  Most of them were dll libraries not found.  I copied these across.  

When I now run the program it works fine, except it keeps on throiwing up a "Applicatioon Defined or object-orinteted error", which I've tracked down in the source code to the first line that queries the ODBC source.  The odbc source is excatley the same on the test machine.  I assume that this might be another dll problem.

Why should I have to go through all this fuss?  Shouldn't vb6 have a clever way of setting this up for the user (instead of copying dlls, registering dlls etc).

If I could get an exe file that i could just copy from machine to machine, I would be a happy man.

Malcolm

0
trevena
Asked:
trevena
  • 3
  • 2
1 Solution
 
MaquiaveloCommented:
 Whenever U R moving the EXE to another machine U should generate an installation program with the Setup Wizard, and then install it on target machine. The Setup program registers OCXs and DLLs itself.
0
 
trevenaAuthor Commented:
This might sound a bit daft, but where do I find the "Setup Wizard"

Is it a stand alone application, or an option sowher in the IDE?
Malcolm
0
 
Éric MoreauSenior .Net ConsultantCommented:
Since you are using VB6, you will find the Package and Deployment Wizard (instead of the Setup Wizard that comes with VB5).

You will find this tool in the Tools menu where you find your VB6 link.

This tool will collect all the requested files and create 3 files:
-a CAB file;
-Setup.EXE;
-Setup.LST.

On the other PC, executes Setup.exe that will read and install the other 2 files. Then your application should start.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
trevenaAuthor Commented:
Thanks!
Worked a treat.
0
 
Éric MoreauSenior .Net ConsultantCommented:
Now, if it is working, you have to accept an answer!
0
 
trevenaAuthor Commented:
Whoops!
Sorry.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now