473,785 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error Visual Basic: ! Compile error. Can't find project or library

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

Jul 17 '05 #1
2 23085
Check what "TextString " is declared as. If it is not declared - declare it
as String.
"Familie Spies" <hs****@caiw.nl > wrote in message
news:41******** *************@n ews.kabelfoon.n l...
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

Jul 17 '05 #2
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 strJustanExampl e 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" <em***@noserver .com> wrote in message
news:5E******** *************@n ews20.bellgloba l.com...
Check what "TextString " is declared as. If it is not declared - declare it as String.
"Familie Spies" <hs****@caiw.nl > wrote in message
news:41******** *************@n ews.kabelfoon.n l...
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


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1321
by: askingBoy | last post by:
Hello , I would like to know how to make this : I have a library written in Visual Basic .Net that has some events for its class , I am making an instance of this class in a Visual basic 6.0 Project and I can call the methods from the object I instanced . However I cannot raise the events from this library with my object , I already made a sub in the vb 6.0 in the form : Private Sub object_Event() 'Some code here End Sub
6
4753
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
26
10884
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
2
5745
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project in debug mode, the following errors happened: d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29): error C2365: 'new' : redefinition; previous definition was a 'member function' d:\Program Files\Microsoft Visual Studio...
11
3142
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some useful utils that more pages on that server can use. As an example, I have created a Page Counter class that opens an Access .mdb file, counts the current entries for that page, and adds a new entry with some information regarding the current...
5
2951
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times I try to start to run/debug a project (through Visual Studio) Server Error in '/Intranet' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during...
4
1289
by: Jason Richmeier | last post by:
I keep encountering an error message while trying to build a solution that I cannot seem to get around. I cannot figure out what the error is trying to tell me as there does not appear to be much information provided. I have a C# class library project (project A) that references a C++ class library project (project B). If I compile project B, no errors are reported. If I compile project A, no errors are reported. I also have a C# web...
4
7589
by: nekker64 | last post by:
Hi, I have this complete Audit database at work that I inherited from someone who left late last year, it has been working fine up until this week. There are report form section that I can select reports by specific topics, but when I select and press that report button, instead of the report opening up, I get the this error message pop up "Compile error: Can't find project or library" and then the Visual BAsic editor opens with code info...
3
1390
by: iseveryusernamealreadyuse | last post by:
For about the past month, whever I start Excel of try to open an Excel file, I get a Visual Basic popup window: Compile Error: Can't find project or Library. I have no idea why I'm getting this message of how to prevent the 7 or so popup windows. After I close each window, I get a message saying that "debugger will stop". How can I prevent this error in the first place? I have Windows XP, Office 2003. Thanks in advance!
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10153
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9952
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.