|
-
Mar 8th, 2000, 11:31 AM
#1
Thread Starter
New Member
first, I want to thank everybody who helped me on my previous questions, they were very helpful on my projects.
the little program is about upload access97 into the VB's textbox fields and save back to access97. I am using ADO connection.
after I made the the executable file of it in a floppy disk and try to run it on the other machine with only access2000 but no VB(to see if it will work), the error message is saying:"component 'MSADODC.OCX' or one of its dependencies not correctly registered: a file is missing or invalid ", after I copied this file to the floppy drive. it says:"component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid",
after I copied this file, then it says:"run-time error'91' bject variable or with block variable not set"
I don't what to do is correct? the goal is to able to run this little program in any PC without VB software. can anybody help? thank you very much.
-
Mar 8th, 2000, 11:36 AM
#2
Hyperactive Member
Unfortunately VB doesn't work that way :-(
Unlike other languages like C++ and the like, Visual Basic cannot be run on other people's machines without a supporting cast.
The most famous of these is the VB runtime file... and while vbrun300.dll may be standard on most machines... those people using VB5 and VB6 will have to include a 3MB runtime file with their application for STARTERS.
What you need to do is to use the "Dependancy Walker" to tell you what Dynamic Link Libraries (DLL's) are required by your application in order to run successfully. If you use the "Distribution Wizard" that comes with Visual Basic it will package what you should need to make it run on other peoples machines.
But one thing you will NEVER be able to do is port it around on a SINGLE floppy disk... Thats just the problem with VB.
-
Mar 8th, 2000, 11:47 AM
#3
Addicted Member
first, I want to thank everybody who helped me on my previous questions, they were very helpful on my projects.
the little program is about upload access97 into the VB's textbox fields and save back to access97. I am using ADO connection.
after I made the the executable file of it in a floppy disk and try to run it on the other machine with only access2000 but no VB(to see if it will work), the error message is saying:"component 'MSADODC.OCX' or one of its dependencies not correctly registered: a file is missing or invalid ", after I copied this file to the floppy drive. it says:"component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid",
after I copied this file, then it says:"run-time error'91' bject variable or with block variable not set"
I don't what to do is correct? the goal is to able to run this little program in any PC without VB software. can anybody help? thank you very much.
Sounds like you are missing a reference to the Microsoft ADO? what version Visual Basic are you using? Sounds like you need the component "Microsoft ADO Datacontrol 6.0" and also you need a reference to the ADO library or similar function (Project -- References on the menu bar). Try copying those ocx's to the Windows directory. Better yet create a dependency file with the package and deployment wizard or create a setup.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|