Solved

File Structures

Posted on 2004-10-01
5
221 Views
Last Modified: 2010-04-01
Hello,

I have an application with the include files and a win.lib file in two separate folders - both were provided. I need to use another header file and I put it in the include folder and #include it in my application but it doesn't work - any ideas? Thanks!  
0
Comment
Question by:catsinboots
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 12200991
You need to set up the INCLUDE path to point to the directory where the .h file resides. What compiler are you using?
0
 

Author Comment

by:catsinboots
ID: 12202552
I am using visual studio .NET - I typed #include "myfile.h" at the top of the application file but it doesn't work.
0
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 12202763
That's what I meant - go to your project settings and go to the "Preprocessor" section on the C++ tab. There's a text field labeled "Additional include directoris" where you can enter the location of your .h file.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why  my code (program) build with old compiler? 11 145
Are the two lines the same? If not what is the difference? 2 30
Gaming Software 1 38
Need some help with design 17 46
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question