Can't open include file

  • Thread starter Anders Eriksson
  • Start date
A

Anders Eriksson

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:\Documents 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
 
G

Guest

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.
 
G

Guest

Sorry wrong posting..

Balaji

Balaji J said:
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.
 
G

Guy

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

M
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories\Includ
Dirs

Cheers,
Guy

Anders said:
*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:\Documents 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.public.vc.mfc
Replies will go to: microsoft.public.vc.mfc


-
Gu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top