473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can't open include file

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\Visual Studio Projects\Library\xLaser\src\LaserDlg.h'
Build system path: "C:\Documents and Settings\ame\My Documents\Visual
Studio Projects\SCLaser\SCLaser";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\Inc";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\xLaser\src";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\res";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\Advantech_ADSAPI\Include";C:\Docu ments and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\Common;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program
Files\Microsoft SDK\include;C:\Program Files\Laser Sample\Inc
---------------------------
OK
---------------------------

Crossposted to: microsoft.public.dotnet.languages.vc,microsoft.pub lic.vc.mfc
Replies will go to: microsoft.public.vc.mfc
Nov 17 '05 #1
4 5792
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\Visual Studio Projects\Library\xLaser\src\LaserDlg.h'
Build system path: "C:\Documents and Settings\ame\My Documents\Visual
Studio Projects\SCLaser\SCLaser";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\Inc";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\xLaser\src";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\res";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\Advantech_ADSAPI\Include";C:\Docu ments and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\Common;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program
Files\Microsoft SDK\include;C:\Program Files\Laser Sample\Inc
---------------------------
OK
---------------------------

Crossposted to: microsoft.public.dotnet.languages.vc,microsoft.pub lic.vc.mfc
Replies will go to: microsoft.public.vc.mfc

Nov 17 '05 #2
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\Visual Studio Projects\Library\xLaser\src\LaserDlg.h'
Build system path: "C:\Documents and Settings\ame\My Documents\Visual
Studio Projects\SCLaser\SCLaser";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\Inc";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\xLaser\src";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\res";"C:\Documents and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\Advantech_ADSAPI\Include";C:\Docu ments and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\Common;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program
Files\Microsoft SDK\include;C:\Program Files\Laser Sample\Inc
---------------------------
OK
---------------------------

Crossposted to: microsoft.public.dotnet.languages.vc,microsoft.pub lic.vc.mfc
Replies will go to: microsoft.public.vc.mfc

Nov 17 '05 #3

I'm having the exact same problem, perhaps its a bug in VS
-
DNA512
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 17 '05 #4
Guy

Go to regedit and input your include directory in the following place:

M
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Vis ualStudio\7.0\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Di rectories\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\Visual Studio Projects\Library\xLaser\src\LaserDlg.h'
Build system path: "C:\Documents and Settings\ame\M
Documents\Visual
Studio Projects\SCLaser\SCLaser";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\Inc";"C:\Document
and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\xLaser\src";"C:\Documents and Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\xLaser\res";"C:\Document
and
Settings\ame\My Documents\Visual Studio
Projects\LIBRARY\Advantech_ADSAPI\Include";C:\Docu ments an
Settings\ame\My
Documents\Visual Studio Projects\LIBRARY\Common;C:\Progra
Files\Microsoft
Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsof
Visual
Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsof
Visual
Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program
Files\Microsoft Visual Studio .NE
2003\Vc7\PlatformSDK\include;C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program
Files\Microsoft SDK\include;C:\Program Files\Laser Sample\Inc
---------------------------
OK
---------------------------

Crossposted to:
microsoft.public.dotnet.languages.vc,microsoft.pub lic.vc.mfc
Replies will go to: microsoft.public.vc.mfc

-
Gu
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Nov 17 '05 #5

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

Similar topics

9
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'...
10
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)
1
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 :...
6
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:...
2
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...
2
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...
11
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...
2
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.