We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,571 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

managed to connect to mySQL

i connected and migrated all the things from access to mySQL (online) using free hosting on the net, when i make my simple program to .exe, then run it on different computer, its asking for some OCX and dll files... why is that happening? my .exe program run well on pc where i coded it... im so happy it was working well then when i coneverted to exe, its asking for many files, its inventory section is working well and connected, but those section using data controls and datagrid is not fetching any files and giving errors

2
Contributors
2
Replies
19 Hours
Discussion Span
4 Months Ago
Last Updated
4
Views
Question
Answered
2mhzbrain
Light Poster
33 posts since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Your compiled program does not contain all the code that it uses. Most of the windows code is contained in DLLs and ocx files. When you deploy your program you might also have to deploy some (or all) the DLLs and ocs files.

Before doing anything, download a copy of dependency walker (link) to find out what DLLs and ocx your program uses. Then you will have to check the target computer to find out which ones it is missing. Be careful not to overwrite old DLLs on your computer with newer versions on the target computer. You need to do version check before installing your DLLs and OCX files. If you use an auto installer such as InstallShield it will most likely do all that for you.

As an alternative, check your compiler settings and see if it will statically link the DLLs and OCXs so that they are not needed on the target computer. But that will probably double the size of your program. I don't know if vb 6 has such an option or not.

Ancient Dragon
Achieved Level 70
Team Colleague
32,274 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

Thank you for advice, it worked now after registering all dlls needed,

2mhzbrain
Light Poster
33 posts since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 4 Months Ago by Ancient Dragon

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0881 seconds using 2.64MB