Hello!
I'm using VC++ 7.1 and MFC.
In a header file that is located in a different directory that the main
project I include a header file that is located in the main project
directory. The project is called SCLaser.
When I right-click on the #include "SCLaserDoc .h" and select Open Document
SCLaserDoc.h, it can't find the file and lists all the directories that I
have defined as build directories. See below.
The first of those directories is the main project directory where the
SCLaserDoc.h is located!
Why and how do I fix this??
// Anders
--
---------------------------
Microsoft Development Environment
---------------------------
File 'SCLaserDoc.h' not found in current source file's directory or in
build system paths.
Current source file path: 'c:\Documents and Settings\ame\My
Documents\Visua l Studio Projects\Librar y\xLaser\src\La serDlg.h'
Build system path: "C:\Documen ts and Settings\ame\My Documents\Visua l
Studio Projects\SCLase r\SCLaser";"C:\ Documents and Settings\ame\My
Documents\Visua l Studio Projects\LIBRAR Y\xLaser\Inc";" C:\Documents and
Settings\ame\My Documents\Visua l Studio
Projects\LIBRAR Y\xLaser\src";" C:\Documents and Settings\ame\My
Documents\Visua l Studio Projects\LIBRAR Y\xLaser\res";" C:\Documents and
Settings\ame\My Documents\Visua l Studio
Projects\LIBRAR Y\Advantech_ADS API\Include";C: \Documents and Settings\ame\My
Documents\Visua l Studio Projects\LIBRAR Y\Common;C:\Pro gram Files\Microsoft
Visual Studio .NET 2003\Vc7\includ e;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\atlmfc \include;C:\Pro gram Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\p rerelease;C:\Pr ogram
Files\Microsoft Visual Studio .NET 2003\Vc7\Platfo rmSDK\include;C :\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\i nclude;C:\Progr am
Files\Microsoft SDK\include;C:\ Program Files\Laser Sample\Inc
---------------------------
OK
---------------------------
Crossposted to: microsoft.publi c.dotnet.langua ges.vc,microsof t.public.vc.mfc
Replies will go to: microsoft.publi c.vc.mfc 4 5822
Where are you creating this font?. Are you assigning this font to the current Device context for the window. Ideally the font should be created in a message like OnDraw() and the font will be selected by making a call to SelectObject() of the device context that was passed to the function.
Balaji.
"Anders Eriksson" wrote: Hello!
I'm using VC++ 7.1 and MFC.
In a header file that is located in a different directory that the main project I include a header file that is located in the main project directory. The project is called SCLaser.
When I right-click on the #include "SCLaserDoc .h" and select Open Document SCLaserDoc.h, it can't find the file and lists all the directories that I have defined as build directories. See below.
The first of those directories is the main project directory where the SCLaserDoc.h is located!
Why and how do I fix this??
// Anders -- --------------------------- Microsoft Development Environment --------------------------- File 'SCLaserDoc.h' not found in current source file's directory or in build system paths.
Current source file path: 'c:\Documents and Settings\ame\My Documents\Visua l Studio Projects\Librar y\xLaser\src\La serDlg.h' Build system path: "C:\Documen ts and Settings\ame\My Documents\Visua l Studio Projects\SCLase r\SCLaser";"C:\ Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\Inc";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\src";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\res";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Advantech_ADS API\Include";C: \Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Common;C:\Pro gram Files\Microsoft Visual Studio .NET 2003\Vc7\includ e;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc \include;C:\Pro gram Files\Microsoft Visual Studio .NET 2003\Vc7\Platfo rmSDK\include\p rerelease;C:\Pr ogram Files\Microsoft Visual Studio .NET 2003\Vc7\Platfo rmSDK\include;C :\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\i nclude;C:\Progr am Files\Microsoft SDK\include;C:\ Program Files\Laser Sample\Inc --------------------------- OK ---------------------------
Crossposted to: microsoft.publi c.dotnet.langua ges.vc,microsof t.public.vc.mfc Replies will go to: microsoft.publi c.vc.mfc
Sorry wrong posting..
Balaji
"Balaji J" wrote: Where are you creating this font?. Are you assigning this font to the current Device context for the window. Ideally the font should be created in a message like OnDraw() and the font will be selected by making a call to SelectObject() of the device context that was passed to the function.
Balaji. "Anders Eriksson" wrote:
Hello!
I'm using VC++ 7.1 and MFC.
In a header file that is located in a different directory that the main project I include a header file that is located in the main project directory. The project is called SCLaser.
When I right-click on the #include "SCLaserDoc .h" and select Open Document SCLaserDoc.h, it can't find the file and lists all the directories that I have defined as build directories. See below.
The first of those directories is the main project directory where the SCLaserDoc.h is located!
Why and how do I fix this??
// Anders -- --------------------------- Microsoft Development Environment --------------------------- File 'SCLaserDoc.h' not found in current source file's directory or in build system paths.
Current source file path: 'c:\Documents and Settings\ame\My Documents\Visua l Studio Projects\Librar y\xLaser\src\La serDlg.h' Build system path: "C:\Documen ts and Settings\ame\My Documents\Visua l Studio Projects\SCLase r\SCLaser";"C:\ Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\Inc";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\src";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\res";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Advantech_ADS API\Include";C: \Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Common;C:\Pro gram Files\Microsoft Visual Studio .NET 2003\Vc7\includ e;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc \include;C:\Pro gram Files\Microsoft Visual Studio .NET 2003\Vc7\Platfo rmSDK\include\p rerelease;C:\Pr ogram Files\Microsoft Visual Studio .NET 2003\Vc7\Platfo rmSDK\include;C :\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\i nclude;C:\Progr am Files\Microsoft SDK\include;C:\ Program Files\Laser Sample\Inc --------------------------- OK ---------------------------
Crossposted to: microsoft.publi c.dotnet.langua ges.vc,microsof t.public.vc.mfc Replies will go to: microsoft.publi c.vc.mfc
I'm having the exact same problem, perhaps its a bug in VS
-
DNA512
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------
Go to regedit and input your include directory in the following place:
M
Computer\HKEY_L OCAL_MACHINE\SO FTWARE\Microsof t\VisualStudio\ 7.0\VC\VC_OBJEC TS_PLATFORM_INF O\Win32\Directo ries\Includ
Dirs
Cheers,
Guy
Anders Eriksson wrote: *Hello!
I'm using VC++ 7.1 and MFC.
In a header file that is located in a different directory that th main project I include a header file that is located in the main project directory. The project is called SCLaser.
When I right-click on the #include "SCLaserDoc .h" and select Ope Document SCLaserDoc.h, it can't find the file and lists all the directorie that I have defined as build directories. See below.
The first of those directories is the main project directory wher the SCLaserDoc.h is located!
Why and how do I fix this??
// Anders -- --------------------------- Microsoft Development Environment --------------------------- File 'SCLaserDoc.h' not found in current source file's directory o in build system paths.
Current source file path: 'c:\Documents and Settings\ame\My Documents\Visua l Studio Projects\Librar y\xLaser\src\La serDlg.h' Build system path: "C:\Documen ts and Settings\ame\M Documents\Visua l Studio Projects\SCLase r\SCLaser";"C:\ Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\Inc";" C:\Document and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\src";" C:\Documents and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\xLaser\res";" C:\Document and Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Advantech_ADS API\Include";C: \Documents an Settings\ame\My Documents\Visua l Studio Projects\LIBRAR Y\Common;C:\Pro gra Files\Microsoft Visual Studio .NET 2003\Vc7\includ e;C:\Program Files\Microsof Visual Studio .NET 2003\Vc7\atlmfc \include;C:\Pro gram Files\Microsof Visual Studio .NET 2003\Vc7\Platfo rmSDK\include\p rerelease;C:\Pr ogram Files\Microsoft Visual Studio .NE 2003\Vc7\Platfo rmSDK\include;C :\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\i nclude;C:\Progr am Files\Microsoft SDK\include;C:\ Program Files\Laser Sample\Inc --------------------------- OK ---------------------------
Crossposted to: microsoft.publi c.dotnet.langua ges.vc,microsof t.public.vc.mfc Replies will go to: microsoft.publi c.vc.mfc
-
Gu
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
----------------------------------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ferbar |
last post by:
Hi all,
I'm trying to read from the txt file 'ip.packets.2.txt' using the read
function. It seems everything ok, but I get a -1 when executing
>>bytesr = read(fdo1, bufread, 2);
The 'open' function returns the file dsc 3. So this seems ok..
Any idea what might be wrong?
|
by: Gunnar G |
last post by:
I'm having problem reading from the beginning of a file.
Here is the code (more or less)
ifstream codefin;
ofstream codefout;
while (not_annoyed)
|
by: Julian |
last post by:
I am trying to compile a "legacy" code in VC++ .NET (2003)
this code works fine in VC6
I get the following error:
LNK1104: cannot open file 'msvcirtd.lib'
i read this page :
http://support.microsoft.com/kb/q154419/
|
by: Jofio |
last post by:
I have a .h (header file) linked using #include<...>. I also have a .cp
file which i don't know how to include in the header of my "main" file.
I have the following c++ file.
The file names are: 1) dArray.h
2) dArray.cp
3) dArrayTest.cpp
dArray.h file declares and defines a class called DynamicArray.
dArray.cp defines the functions declared as member functions in
DynamicArray class in dArray.h. This dArray.h is includded in the
|
by: Jofio |
last post by:
I have 3 files, namely:
dArray.h
dArray.cp
TestdArray.cpp
Problem is when I compile the 'main' program - TestdArray.cpp - , it
(the compiller) produces the following error:
'Unable to open include file 'dArray.h'
'Unable to open include file'dArray.cp'
| |
by: dasilva109 |
last post by:
Hi guys
I am new to C++ and need urgent help with this part of my code for a
uni coursework I have to submit by Thursday
//ClientData.h
#ifndef CLIENTDATA_H
#define CLIENTDATA_H
#include <string>
|
by: cybervigilante |
last post by:
I can't seem to change the include path on my local winmachine no
matter what I do. It comes up as
includ_path .;C:\php5\pear in phpinfo() but there is no such file. I
installed the WAMP package and PEAR is in c:\wamp\php\pear
I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can't change it no matter what I do I also tried
the...
|
by: gdarian216 |
last post by:
the program reads input from a file and then outputs the averages and grade.
for some reason it is reading in the same line twice and it doesn't print out the grade. everything else is correct, if someone can help me thanks
this is my code....
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
|
by: hirsh.dan |
last post by:
i have a functions that writes information to a file.
inside that function i have a line in which i call another function.
if this line is executed, nothing is written to the file, but if i
remark that line, it is written.
i wanna understand what's wrong and fix it, but can't find what is
wrong.
also this line is mandatory in my code.
the code attached is in the link, minimized to the needed info, a bit
different then the way it's...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |