Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2005

Tip: Looking for answers? Try searching our database.

Can't open include file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anders Eriksson - 05 Jul 2004 07:46 GMT
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
---------------------------
OK  
---------------------------

Crossposted to:  microsoft.public.dotnet.languages.vc,microsoft.public.vc.mfc
Replies will go to:  microsoft.public.vc.mfc
Balaji J - 05 Jul 2004 12:13 GMT
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.

> Hello!
>
[quoted text clipped - 44 lines]
> Crossposted to:  microsoft.public.dotnet.languages.vc,microsoft.public.vc.mfc
> Replies will go to:  microsoft.public.vc.mfc
Balaji J - 05 Jul 2004 12:33 GMT
Sorry wrong posting..

Balaji

> 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.
>
[quoted text clipped - 48 lines]
> > Crossposted to:  microsoft.public.dotnet.languages.vc,microsoft.public.vc.mfc
> > Replies will go to:  microsoft.public.vc.mfc
DNA5122 - 21 Jul 2004 19:35 GMT
I'm having the exact same problem, perhaps its a bug in VS
Guy - 22 Feb 2005 12:37 GMT
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

> *Hello!
>
[quoted text clipped - 58 lines]
> microsoft.public.dotnet.languages.vc,microsoft.public.vc.mfc
> Replies will go to:  microsoft.public.vc.mfc



Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.