Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

File Structures

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

810 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