Cant Find Project Or Library
I have a VB6 application and while creating an EXE i get an error saying "Can't find project or library". Up On clicking ok, it highlights the FORMAT function.
I commented out the FORMAT function, now it highlights the STRING$ function.
I commented out the STRING$ function, now it hightlights the TRIM function...
This code was working find before. No change has been made to it in last over a year. What could be the issue? What are the required references to use FORMAT, STRING$, TRIM etc functions?
Any urgent help shall be appreciated!!
Thank You, Ankeet
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can't Find Project Or Library
hi
can anyone help me out with this code i have when i try to run it im getting this can't find project or library and this line of code is highlighted :
Code:
Dim mailman As ChilkatMailMan2
and here is the hole code :
Code:
Private Sub Command1_Click()
On Error Resume Next
Dim mailman As ChilkatMailMan2
Set mailman = New ChilkatMailMan2
' Anything will begin the 30-day trial.
mailman.UnlockComponent "UnlockCode"
mailman.SmtpHost = "mail.domain.com"
' Only set username/password if your SMTP server requires a logon.
mailman.SmtpUsername = "username here"
mailman.SmtpPassword = "password here"
' Only set the login domain if your SMTP server uses integrated Windows authorization
' AND it is part of a domain.
mailman.SmtpLoginDomain = "mail.domain.com"
' How do I send an email with an attachment?
Dim email As ChilkatEmail2
Set email = New ChilkatEmail2
email.AddTo "Chilkat Support", "email@yahoo.ca"
email.Subject = "Test of sending queued mail from VB using the SMTP queue"
email.Body = "This email was sent from Visual Basic using the SMTP queue service"
email.FromName = "jeff"
email.FromAddress = "email@yahoo.ca"
email.ReturnReceipt = 1
' Add a file attachment.
Dim contentType As String
contentType = email.AddFileAttachment("sample.jpg")
' To send encrypted and/or signed emails, just set these flags.
email.SendEncrypted = 1
email.SendSigned = 1
Dim success As Long
success = mailman.SendQ(email)
Label1.Caption = "Success: " & Str(success) & vbCrLf
If (success = 0) Then
MsgBox mailman.LastErrorText
End If
End Sub
Can't Find Project Or Library
I wrote a VB 6 program that takes information from
an Excel spreadsheet and prints tags.
It has been running.
I’m now getting the following error, when I run the VB program
“Compile error: “Can't find project or library.”"
I think the problem is due to Excel being upgraded
to Excel 2003 and I don’t have the necessary
Reference or Component.
Thanks...
MID - Cannot Find Project Or Library
Here is a weird one.
I have an application used by several users.
I use some of the VBA string manipulation functions such as Mid, Instr etc.
Everyone is using Excel 2002 SP-2, on identical or almost identical systems.
However one of my users gets an error on the Mid statement "Cannot find Project or Library".
If I change the Mid statement to Application.Mid it works.
However none of my other users have this problem.
I checked that the references in VBA are identical, so I am a bit in the dark here.
Any comments or suggestions to what is going on?
Thanks
Can't Find Project Or Library
I am getting the error message "Can't find project or library" when I compile my script, and the cursor sits on the r1 (see below) telling me there is an error in that statement. I have no idea what is wrong any help would be appreciated.
When I comment out the first statement i get the same error with the date command highlighted.
***** Code below ****************
Private Sub CommandButton1_Click()
r1 = ActiveCell.row
Sheet3.Cells(11, 3) = "Date: " & Date 'date
Sheet3.Cells(8, 3) = Sheet1.Cells(r1, 3) ' Part #
Sheet3.Cells(4, 3) = Sheet1.Cells(r1, 4) ' part name
Sheet3.Cells(13, 3) = Sheet1.Cells(r1, 5) & " GROSS/LBS" ' gross
Sheet3.Cells(15, 3) = Sheet1.Cells(r1, 6) & " TARE/LBS" ' tare
Sheet3.Cells(17, 3) = Sheet1.Cells(r1, 7) & " NET/LBS" ' net
Sheet3.Cells(20, 3) = Sheet1.Cells(r1, 9) & " APW" ' APW
Sheet3.Cells(26, 3) = Val(Sheet1.Cells(r1, 9)) & " QTY" ' QTY
Sheet3.PrintOut
End Sub
Can't Find Project Or Library
I've seen a lot of threads like this one, and they all say the same thing, go to references, find the line with "Missing" in it and uncheck it... well, what if none of my lines say "missing"?
The issue is this. I have an ongoing program we release to our users every 6-12 months. I am in the middle of the update cycle and have fixed several bugs found in the last release, bt it has not been put through QA yet. The version I'm working on compiles just fine and works as expected.
We're not close to releaing this newer update yet, but my boss wants me to fix just one of the bugs for a special user. I went back to the code I saved from the last release and was planning on modifying that code to fix this one bug, then I would send that version to the user. But when I try to compile the older version of the code, that's when I get the "Can't find project or library" error. It points to the TxText Control, which is a 3rd party app we bought and dropped in for some text editing capabilities.
There is no reference for it, to add the control to my project I just go to the componenets and add it there. This works fine in the latest version of the code, but not in the older version. The path is exactly the same between the two, nothing is labeled as missing, the OCX that works for the new version is simply "not found" in the older code base. It is the same exact file, in the same exact place for both versions of the code, why can't my older code base find the information it needs in the OCX file?
Can't Find Project Or Library
Hi
I'm trying to use the string manipulation functions like Mid(), RTrim() etc but whenever I run my program, it says 'Can't find project or library' and points to the Mid() or whatever function. these functions are integral to my application!
Thing is, I've been through the references hundreds of times, found nothing. Making a new project it works, but not on my existing one.
Help please!
(PS sorry this is in the wrong place; and the new design is really nice!)
Can't Find Project Or Library
I've got 2 computers in 2 locations. When I copy a project from 1 computer to the other and open it in vb, I get the above error.
It seems to be choking on standard functions like Len and Date.
Anyone know how to get around this?
Can't Find Project Or Library
Hope there's an answer for this!
I've have been nicely informed by the VB on serveral occasions that "Compile error, Can't find project or Library", and when i go into debug Visual Basics has kindly high-lighted the funtion that it doesn't recognize(they're so thoughtful). but the problem is: the function/functions thats not recognized are like "Right()" Mid() ....
I'm sure i don't have to reference these since they are part of vb itself. Don't know what the problem is!
However, if i copy the code, open a new project and place the code in a new form, bam!! alls well in VBLand??
Any ideas!
Any answers!
Please!
Thanx
Regan
Can't Find Project Or Library
I have a visual basic project that i copied to a computer which i just recently installed Win 2000 Server onto. I installed VB6, and MSDN.
When I try to run my project (which worked fine on my other PC), I get compile errors such as:
"Can't find project or library"
this error occurs on the line
Code:
lable6.caption = Date
Its as if VB doesn't know what the Date function is.
If I comment out that line, i get the same error on this line:
Code:
dim rs As New ADODB.Recordset, SQL as String
So obviously I am missing something that VB needs to run this code. Any ideas on what i need to install?
Thanks,
Brian
Cant Find Project Or Library
I am connecting a flexgrid in vb6 to 2 tables in my access db.
here is my code:
Code:
Private Sub Form_Load()
Set conA = New ADODB.Connection
Set rsA = New ADODB.Recordset
AccessConnect = "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=Database_Andrea_mar09_v2-0.mdb;" & _
"DefaultDir=C:Project;" & _
"Uid=Admin;Pwd=;"
conA.ConnectionString = AccessConnect
conA.Open
strQuery = "SELECT o.Ord_Number, c.Cust_First_Name, c.Cust_Last_Name, c.Cust_Street, " & _
"c.Cust_City, c.Cust_Province, c.Cust_Postal_Code, c.Cust_Phone " & _
"FROM tblOrder AS o, tblCustomer AS c WHERE o.Ord_Cust_ID = c.Cust_ID"
'rsA.CursorLocation = adUseClient
With rsA
.CursorLocation = adUseClient
.CursorType = adOpenDynamic
.LockType = adLockOptimistic
.Open strQuery, AccessConnect, , , adCmdText
End With
cboOrderNumber.Text = rsA![Ord_Number]
rsA.MoveFirst
Do Until rsA.EOF
cboOrderNumber.AddItem rsA![Ord_Number]
rsA.MoveNext
Loop
rsA.MoveFirst
I keep getting a compile error: Cant find project or library. whats going on?
Can't Find Project Or Library
When using VB 5 in the classroom we get the "Can't find project or library" Error when adding the FORMAT and other Functions to tutorial programs. We have not idea how to solve the issue. If a program is written from scratch the issue isn't present, only when continuing a prebuilt tutorial with out book.
Thanks
Bruce
Can't Find Project Or Library
I have been programming in the Visual Basic 6.3 in Excel.
Suddenly I start getting the error message "Compile Error: Can't find project or library" for procedures that ran used to run perfectly, and I have changed nothing in the actual procedures.
For example
MyChartSpace.Charts(0).Type = chChartTypeBarStacked
makes it return the above error message saying that it can't find the "chChartTypeBarStacked"
also when the Mid fundtion (syntax: 'Mid(string, start[, length])') no longer works (same error message as above).
If I open a new excel workbook and copy the forms and the modules from my old file into this new file the new file does not return the error message. However, whenever I use the file on a new computer I will have to repeat this procedure and copy forms and modules to avoid error message.
Does anyone have a clue as to what might be going on and how I can get rid of this problem?
Any help would be greatly appreciated!
Can T Find Project Or Library
When I try to debug an application, it always gives me can t find project or library for regular VB objects like: Trim, Node ...etc
ve u had this before
Thanks.
Can't Find Project Or Library
Hi,
I just installed VB6 Pro on a new computer and trying to run my application that works just fine on the other computer that I have but on this new one as soon as I start to run it it stops at Trim$ function and tells me the following error "Can't find project or library"
I made sure that I have selected all the componants and references that I have selected on my other computer with only one difference of MSCAL.OCX cuz I do not have MS OFFICE on this new computer yet.
I don't have a clue. Can someone Please HELP.
Thanks.
Can't Find Project Or Library???
I'm getting that error and it is pointing to this function...
ucase()
so I removed ucase and now it is giving the same error and pointing to this function...
format()
I clicked on Project --> References and it says "missing" beside two dlls but I'm fairly certain they have nothing to do with these functions (they are ActiveReports dlls).
Why is it having trouble with these functions? How do I resolve.
Thanks.
Can't Find Project Or Library
i AM USING fILEsYSTEMONJECT IN MY PROJECT
Dim fso As New FileSystemObject
Have added ref to c:WINNTSystem32scrrun.dll (Microsoft scripting runtime)
Still getting err "can't find project or library"
PLzzzzzzzz help me in this
Can't Find Project Or Library
Dearest amigos,
I'm getting "Can't find project or library" when I try to use the "Trim" or "Trim$" function in my program.
Any ideas on why? I thought this was standard in VB...
Squirrelly1
Can't Find Project Or Library
Alright before i take a long walk off a short monitor, figured I would come on over here and see if anyone else has any ideas
Decided to reinstall my system at work, hehe maybe not the best idea but least it isn't crashing as much. Anyways got all my source safe back up and running, etc... set workign dir and all that, get copies of the project etc. goto open and run it and WHAM! "can't find project or library" that error pops up, either on the Chr() function or Date function in VB. have installed the service pack 5 for VB6 and such, crystal reports is also installed, although that shouldn't interfere but god only knows, since it does have add ins for VB.
Has anyone out there recieved this error, or had this happen to them?
What reference do these functions use?
Thanks in advance all for any assistance you can provide just don't laugh too hard, if it's that simple.
Can't Find Project Or Library
I got a new computer and supposedly all my files were just copied to this new one. I re-installed VB to get the stuff in the registry that it needs (I thought), but now I get the message 'can't find project or library' at this part of the code:
Public Function FixedPath(Path As String) As String
If right(Path, 1) <> "" And right(Path, 1) <> ":" Then
FixedPath = Path & ""
Else
FixedPath = Path
End If
HelpPath = FixedPath
End Function
Any ideas??????
Can't Find Project Or Library
I get a compile error: "Can't find project or library" when I try to run some source I downloaded.
I get it on lines such as "For i = 1 to 20" and "Format(blah, blah)"
Why is this and how do I fix it?
Can't Find Project Or Library
I'm taking over an old vb project and on my first try trying to run the program from source code, I get a compile error: Can't find project or library. The highlighted function is Trim a vb method. I can't tell where this problem is coming from. I'm pretty sure it has to do with dlls but I have no clue which one I should be looking for.
Thanks for your help.
Cant' Find Project Or Library
Hi,
how come I got this error: Cant' find project or library
<code>
Year(Date) 'the date causes the error
LCase(text1.text) 'the LCase causes the error
</code>
when in fact this one works lately. Do I have to reinstall VB?
Can't Find Project Or Library
Hi All,
I encounter problem when try to compile my program. It prompts me"Compile Error : Can't Find Project or Library".
Actually i already completed my program few months before, but i need toamend my program due to users' requirement. I've change my hard diskafter completed my program due to hard disk bad sector.
Anybody can help me?
Thanks.
Rgds,
Khai Sze
VB:Cannot Find Project Or Library
Hi
I am trying to modify a COM developed by someone else but getting an error
Cannot find Project or Library
and it points out 'UCASE'
I dont know which library to use there because when I click on OK on this error message it opens References Window
I am just adding another function which is already there with some other name
Its VB 6.0
Thanks
Chr() -- Cannot Find Project Or Library ! :D(
I don't know why I am getting this error when trying to compile using the Chr(). It isn't my code, but when I start a new project, I am able to use chr() without making any changes to my project references.
Insight would be much appreciated!
Cant Find Project Or Library
Hi All,
I am getting a problem with Visual basic.
Space$
retStr = Space$(100)
Iam using this function but it says cant find project or library, this code is already in use and given to me, any idea how to resolve this
regards
anil
Can't Find Project Or Library
I have just started amending an old project, but when I try to run it I get the error message "cant find project or library", folowed by the reference "Microsoft Calendar Control 8.0" beung highlighted.
If I create a new project then there is no problem.
Any hints as to where and what will fix this problem
Paul
Can't Find Project Or Library
What is can't find project and library...what should i do if i see this kind of error msg...normally after this kind of error msg....it will come out a list box... should i choose anything from there??? it look like when you press Ctrl-T
Cant Find Project Or Library
Hi
I am getting error when i am using string functions such as Mid(), Trim().
The error i am getting is "Can't find project or library"
I checked in the references dialog box, but i couldn't figure any solution. But i had found that the "Visual basic runtime objects and procedures" is absent.
Please help me in getting through this problem.
Thanks
Regards,
rama
Cant Find Project Or Library
Im having a big problem running my program. I was using a different machine and everything worked perfectly but when I moved to another machine and installed visual studio 6 Enterprise edition on it I have run into the following problem,
When I try to run it the first method the program uses is the command() method for the command line arguments, and I get the following errors
Cannot find Project or library????
I have made sure the the reference has been set but this seems to make no difference
Any ideas??????????????????
Edited by - gemma_humphries@hotmail.com on 10/27/2004 7:17:47 AM
Can't Find Project Or Library
I am getting an odd error when I try to run a project that I got off of here. It seems to be having trouble using common functions included in VB such as Str, Trim, etc... Does anyone know the cause of this?
This is a screenshot of the error
Edited by - msg555 on 7/13/2004 11:15:02 AM
Can't Find Project Or Library - VB6
Hi Guys,
I have a desktop application, that has been working for the last few months.
There are a few developers working on this project, so we added it to SourceSafe.
However, since 2 days ago, when running the program, we recieve a compile error saying :
Can't Find Project or Library
and it highlights words such as SPACE$ and Trim$ etc.
Please advise what could be the problem.
Thanks in advance
<DIESEL>
If it wasn't for the last minute, NOTHING would get done!!!
Can't Find Project Or Library
Hi,
I am new to VB. Can someone explain to me how to fix the following error
Compile error : Can't find project or library and the following line is highlighted
DriverODBC = String(255, Chr(32))
thanks
Help: Can't Find Project Or Library!
Hi,
I am a seasoned Java/C# programmer and new to VB world. Company has a VB project for me to debug. I can run that project from binary build. However, when I run it from source code --
* It loads up all forms/controls OK
* When it runs, system pops up an error: Compile Error! Can't find project or library.
I check all the references, all of them are good.
Can anyone shed some light on what I can try next to figure out what's the real reason for this error?
Thanks for the help!
Stan
Library Or Project Did Not Find
Hello:
I have design a program and it work well.But when I reinstall the OS(NT) and other software.And run the program again . It has this message"project or library did not find" and high light the word "TRIM".
wky086
Can't Find Project Or Library
I added some code from another form just by copying and pasting it. This form existed in a different project (project2.vbp).
Now when I compile I get the error "Can't find project or library".
I notice that then in the references there is an entry:
MISSING: project2.vbp.
Has anyone seen this before?
Thanks!
Cant Find Project Or Library Command$
HI
im having problems running my project i have reformated my computer and installed vb again but when i go to run my project im getting an error saying CANT FIND PROJECT OR LIBRARY and the COMMAND$ is in blue can anyone help?it will open with no errors but wont run
thanks...
Can't Find Project Or Library Error
i reloaded my system and reloaded vb6 and when i tried to open a past project that i developed in my old system, it gives me an error on things like the Ucase property. the error says project or library no found.
i looked in my object browser and it is there and also if i make a new project from scratch it will not give me the error, only with the past projects.
Unresolved - Cant Find Project Or Library
So i installed visual basic 6 (and sp6) on my server, and when I try to run my applications, it gives me ridiculous errors like 'Cant find project or library' on basic things.
For example,
Code:
sInput = Space(LOF(iInFile))
it gives me that error on this line (with Space selected)
or
Code:
For x = 0 To UBound(myArray)
with x selected (if I have not said precisely Dim x as integer)
How can I fix this?
Cant Find Project Or Library Error
hi all,
i developed a project in my home pc. i copied to office pc and when it is runing it is showing error "cant find project or library" and the cursor is pointing to Ltrim() function. what should be the error here. how can i go ahead with this
saj
Can't Find Project Library Or Reference...
i have downloaded a sample vb program.. but wen i run it, it would have an error that says it couldn't find project library or reference...
and it would appear in the references that microsoft data environment instance is missing.. what should i do?...
Mid Function - Can't Find Project Or Library
Hi,
I have a program I developed with VB6 professional. Installed software (source code) to laptop with only working model (Learning edition).
Kept getting errors in which MID function was highlighted and the message "Can't find project or library" was displayed. It then kept sending me to the "References dialog box" allowing me to fix something. I tried this a year ago, couldn't figure it out...quit...today I was a bit desperate...had to figure it out.
So, here was my solution. The first reference that is checked in the References dialog box is "Visual Basic for Applications". The Location is displayed in the bottom of the Dialog box. Apparently, the location was pointing to my software I had copied to the laptop. So, I changed the location to read "C:WINNTSystem32MSVBVM60.DLL" and Voila!!!
I thought I was share this problem because I am certain it has happened before...couldn't find it straight away searching in Classical VB.
Regards,
ChuckB
Can't Find Project Or Library - URGENT
Hi,
Till yesterday, my project was working fine, but today when I opened it, its giving a Compiler Error "Can't find project or library" on two functions Command$() and Trim$().
What probably be the problem or what reference I have to add ??
Thanks
Format - Can't Find Project Or Library
I just had to reinstall my win 2000 os in my system, but i left all of my project files on the drive. The format function doesn't work now(Error Message : Can't find project or library). But the formatcurrancy and formatdateandtime works. I did open the project before i applied the service pack. Am i missing a reference to it?
Error: Can't Find Project Or Library
I am writing a simple program with ado, datalist, and datagrid connected to an Access 2000 db. Just lately for no reason what so ever, I get the error: " compile error: Can't find project or library" and when I go to references it says that MS ActiveX Data Objects 2.0 is missing. This just started happening on every machine I try to run it on. What would cause this?
Can't Find Project Or Object Library
Hi,
I have written a macro which works fine on my system. But when somebody else works on the same code on a different system it throws out an error can't find object or project library. I know unchecking the mising references will make the codes work but is there a macro that can solve this issue?
I tried with the following code. But it does not work.
Sub References_RemoveMissing()
'Macro purpose: To remove missing references from the VBE
Dim theRef As Variant, i As Long
On Error Resume Next
For i = ThisWorkbook.VBProject.References.Count To 1 Step -1
Set theRef = ThisWorkbook.VBProject.References.Item(i)
If theRef.isbroken = True Then
ThisWorkbook.VBProject.References.Remove theRef
End If
Next i
If Err <> 0 Then
MsgBox "A missing reference has been encountered!" _
& "You will need to remove the reference manually.", _
vbCritical, "Unable To Remove Missing Reference"
End If
On Error GoTo 0
End Sub
Please help.
Smitha
Can't Find Project Or Library {Errtext}
Dear All
When I tried to compile my project it gives me error "Can't find project or
library" on the line "ErrText = "(Error Code " & Hex$(.LastErrorNumber) &
")" & vbCrLf & .LastErrorNumber"
And highlight "Hex$"
Saif
Excel VBA: Cannot Find Project Or Library
Hi
I have an Excel addin which references a vb6 dll.
The dll has been recompiled with binary compatibility set for the previously compiled version.
the dll is installed into c:windowssystem32 and registered using regsvr32.
In Excel, when I Tools>AddIns, select the addin and click OK, I get "Cannot find project or library". When I access the references in the xla, I see "Missing: Batch processor tasks", being the dll.
But it is installed, and it is registered.
If I remove the reference, then remake the reference then all is well.
However, I only want to distribute the dll.
Further confusion in that the above behaviour occurs when I am logged in as an AT user. When logged in with local admin, I get no problems at all.
Any pointers will be appreciated.
|