Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Error Visual Basic: ! Compile error. Can't find project or library
Old
  (#1)
Familie Spies
Guest
 
Posts: n/a
Default Error Visual Basic: ! Compile error. Can't find project or library - 06-04-2007, 09:45 AM

Hi all,

When running a program I made in VB under Windows XP i'm getting the
following error: ! Compile error. Can't find project or library. (see also
http://home.kabelfoon.nl/~hspies/2.jpg )

See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpg

Ubder Windows 98 this error does not occur. Who knows what I do wrong, I've
tried a lot but the error keeps coming in Win XP. Thanks.

John



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Error Visual Basic: ! Compile error. Can't find project or library
Old
  (#2)
Mike
Guest
 
Posts: n/a
Default Re: Error Visual Basic: ! Compile error. Can't find project or library - 06-04-2007, 09:45 AM

Check what "TextString" is declared as. If it is not declared - declare it
as String.


"Familie Spies" <EMAIL REMOVED> wrote in message
news:411d0ace$0$216$EMAIL REMOVED...
> Hi all,
>
> When running a program I made in VB under Windows XP i'm getting the
> following error: ! Compile error. Can't find project or library. (see also
> http://home.kabelfoon.nl/~hspies/2.jpg )
>
> See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpg
>
> Ubder Windows 98 this error does not occur. Who knows what I do wrong,

I've
> tried a lot but the error keeps coming in Win XP. Thanks.
>
> John
>
>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Error Visual Basic: ! Compile error. Can't find project or library
Old
  (#3)
M. Posseth
Guest
 
Posts: n/a
Default Re: Error Visual Basic: ! Compile error. Can't find project or library - 06-04-2007, 09:45 AM

Well to stay social with this newsgroup i will answer in English , but in
fact i am a Dutch programmer located in Rotterdam

If i look at the screenshot i think that Mike is right and this error is
triggered because you have not declared the TextString

To avoid these errors set the folowing statement at the top of your code
modules

Option Explicit '(every serieus VB coder uses Option Explicit )

if you run it now VB will tell you that the variable was not declared

To solve your problem you should add

Dim TextString as string


If i may make another comment about your coding ,,, you should use a
identifier naming convention that adds a prefix to the identifier name to
indicate the functional type of the identifier.
the official MS standard is using Hungarian notation

Dim strJustanExample as string
Dim blnStop as boolean
Dim dblAbigNumber as double
Dim objMsAcces as object
etc etc etc

I hope you get the point , this will help you when your programs get bigger
( and you might not see the declaration in scope ), and make the code much
more readable for an external party

For the rest it looked really nice and well documented

Groeten

M. Posseth [MCP]


"Mike" <EMAIL REMOVED> wrote in message
news:5EeTc.34428$EMAIL REMOVED ...
> Check what "TextString" is declared as. If it is not declared - declare

it
> as String.
>
>
> "Familie Spies" <EMAIL REMOVED> wrote in message
> news:411d0ace$0$216$EMAIL REMOVED...
> > Hi all,
> >
> > When running a program I made in VB under Windows XP i'm getting the
> > following error: ! Compile error. Can't find project or library. (see

also
> > http://home.kabelfoon.nl/~hspies/2.jpg )
> >
> > See the code where it stucks: http://home.kabelfoon.nl/~hspies/1.jpg
> >
> > Ubder Windows 98 this error does not occur. Who knows what I do wrong,

> I've
> > tried a lot but the error keeps coming in Win XP. Thanks.
> >
> > John
> >
> >
> >

>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top