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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

common string functions are producing errors

Status
Not open for further replies.

ALSav

Technical User
Feb 21, 2001
66
GB
Hi,

I have written a program that uses common string functions such as Str(), Mid(), left() Right() etc and the program runs without error on my machine. However when I try it on my client's machine, I get errors every time one of these functions is encountered saying 'Cannot find library' Has anyone got any ideas what is causing this. Incidently I know for a fact that he has definitely not got a pirate copy of the software installed

any ideas welcome
Thanks
ALSav
 
How are you installing the app on the client's machine? Are you using the Package and Deployment Wizard in VB, or some other installation program?




I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
At the moment it is not compiled or packaged, I am simply running my VB project which i wrote on my machine and copying and running the project in his VB development environment

thanks for replying

regards

ALSav
 
In order to run your application, the client's machine must have all the files referenced in your project. Even if you did not reference anything, certain files are still expected. Do a search on Visual Studio VB Installer or Package and Deployment Wizard. There are many references to both in this forum.
-Max
 
I am running project files in his copy of VB6 when I encounter the problem, I haven't created a package so it's not an application yet.

Thanks for replying
ALSav
 
On the client's machine, in VB (with the app open) go into Project->References and look for any selected references that have "MISSING:" in the title. These references are the cause of the errors you are seeing. Either remove these references, or install the proper dlls and the project should work.


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Thanks

If I uncheck the references in my version that are labelled 'missing' on his, it runs fine so I suppose they are not required.

Thanks for your help
 
>>it runs fine

Before you assume this based on just running the application in VB (by either F5 or pressing the 'play' button) I would do a full compile of the program without the reference or do a start debugging with a full compile (Ctrl+F5)
 
I am running project files in his copy of VB6 when I encounter the problem

Make sure that his copy of VB is at the same service pack level as yours. Also make sure he has all the same versions of any DLLs or OCXs that you use.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
Hi bjd4jc,
Program seems fine with full compile. Thanks for the tip.

Hi ChipH,
It will be a few days before I can check that one out but I will keep you posted.

Thanks to all who contributed here

ALSav
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top