?
Solved

File Structures

Posted on 2004-10-01
5
Medium Priority
?
227 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 1000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

800 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