By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

Can't open include file

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a

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

Nov 17 '05 #4

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.