Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2006, 04:44 PM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB compile error: can't find project or library

Hi all,

I am new to VB and inherited some code.
It was requested of me to change some code in a dll and recompile the dll for testing. When I try to compile the VB code to see if I get the desired effect on the application, VB gives me a complie error and then pulls up the reference table for me after telling me it cannot find the project or library. I even added the VBA library but that didn't help

I understand enough to know that VB is looking at the string passing a value below. However it can't find the library to look up what (Right$) does in the function below:

Public Function RemoveCDATA(ByVal strData)
   strData = Right$(strData, Len(strData) - Len("<![CDATA["))
   strData = Left$(strData, Len(strData) - Len("]]>"))
   RemoveCDATA = strData
End Function

any help?

Thanks

 
Old November 14th, 2006, 05:13 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I am understanding you correctly, you have entered DLL Hell. Welcome to the life of a VB6 com programmer.

It isn't hard to correct this. I suspect that it you did not maintain binary compatibility of your DLL, and your client application no longer has a valid reference since the project and class GUIDs have changed.

You will have supply more information to clarify this. Such as what compatibility setting are you using on the Project Properties dialog Component tab for your DLL? This should tell us a lot.

  NOTE: You can get those VBA reference issues in the scenario I am suggesting, but they are more or less a "red herring" and not the real problem. The VBA reference and all the intrinsic VBA functions cannot be removed from your project.

Woody Z http://www.learntoprogramnow.com
 
Old November 16th, 2006, 03:16 PM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Woodz, you are right regarding binary compatibility of the DLLs.

Thanks
Bambam





Similar Threads
Thread Thread Starter Forum Replies Last Post
compile error: can't find project or library bruty Excel VBA 1 August 2nd, 2007 06:12 AM
Can't Find Project Or Library jonny10 Excel VBA 1 November 30th, 2006 07:00 AM
Can't find Project or Library. dpkbahuguna Beginning VB 6 1 September 7th, 2006 07:18 PM
Left$ returns Can't Find Project or Library Ron Howerton Access VBA 7 March 22nd, 2006 11:22 AM
Compile error(Can't find project or library) shamala Excel VBA 1 February 21st, 2006 04:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.