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

Chr(0) Error 1

Status
Not open for further replies.

dhaveedh

Programmer
Joined
Aug 13, 2003
Messages
112
Location
GB
Hi All,

I am doing some debugging on a VB6 application and I come across this error message in my code pointing to chr(0) in the expression below

expression:
Dim sRet as String
sRet = String(255, Chr(0))

error message:
Compile error, can't find project or library!


Does anyone know what library VB is looking for?

KISS - Keep It Simple Sugar!
 
I have had this before when I have had a broken reference. Open up your references (Project Menu then References) and then see if any of them have MISSING before them.
 
yes,

I have Microsoft Outlook 9.0 Object library is missing. I have Microsoft Oulook 8.0 Object library selected.

Is this the problem? and how can i solve it?

KISS - Keep It Simple Sugar!
 
I would suggest unchecking the references to Outlook 8/9, close your project then re-open and re-reference the relevant library, then it should behave itself.

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Thanks.

That has solved my problem



KISS - Keep It Simple Sugar!
 
I just came back to give a star to AndyWatt for that tip. It has solved a week-old problem for me. 3stars for you!

KISS - Keep It Simple Sugar!
 
Thanks for the star!

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top