Solved

File Structures

Posted on 2004-10-01
5
202 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Load and store *.pnm image file 1 86
Need 'Configuration File' Management Library for C++ Project 1 511
Find Visual Studio Tools 2 103
Add values of each row in an array 3 57
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 clear a vector as well as how to detect empty vectors in C++.

773 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