Solved

File Structures

Posted on 2004-10-01
5
183 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now