Click here to Skip to main content
15,920,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Delete file at startup or shutdown Pin
tanvon malik5-Mar-05 1:07
tanvon malik5-Mar-05 1:07 
GeneralRe: Delete file at startup or shutdown Pin
Anonymous5-Mar-05 4:51
Anonymous5-Mar-05 4:51 
GeneralRe: Delete file at startup or shutdown Pin
Ravi Bhavnani5-Mar-05 7:51
professionalRavi Bhavnani5-Mar-05 7:51 
GeneralRe: Delete file at startup or shutdown Pin
Max Santos5-Mar-05 9:39
Max Santos5-Mar-05 9:39 
GeneralRe: Delete file at startup or shutdown Pin
Nemok6-Mar-05 0:26
Nemok6-Mar-05 0:26 
GeneralRe: Delete file at startup or shutdown Pin
ThatsAlok6-Mar-05 18:28
ThatsAlok6-Mar-05 18:28 
GeneralInclude statements Pin
MALDATA4-Mar-05 22:31
MALDATA4-Mar-05 22:31 
GeneralRe: Include statements Pin
Johnny ²4-Mar-05 22:56
Johnny ²4-Mar-05 22:56 
The only difference is where the file is included from.

#include "thing.h" - pick up thing.h from current directory
#include "c:\code\thing.h" - pick up thing.h from c:\code\ only (incidentally, this is really bad style - don't do this)

And the one you didn't specify:

#include <thing.h> - pick up thing.h from the include path

The include path is what you need to change to allow header files in a different directory to be found, without hardcoding the path (like the 'c:\code\thing.h' above).

How you change the include path depends on what compiler you are using, but if its VisualStudio then it should be pretty straightforward and you should look in the project settings.

You can have any number of include paths, and the compiler will look in each directory in turn. Make sure you don't have any duplicate headers otherwise you could confuse both yourself and the compiler!
GeneralRe: Include statements Pin
Trollslayer5-Mar-05 8:43
mentorTrollslayer5-Mar-05 8:43 
GeneralRe: Include statements Pin
MALDATA5-Mar-05 13:06
MALDATA5-Mar-05 13:06 
GeneralDialog box hangs help me Pin
Anand for every one4-Mar-05 19:43
Anand for every one4-Mar-05 19:43 
GeneralRe: Dialog box hangs help me Pin
Blake Miller7-Mar-05 12:14
Blake Miller7-Mar-05 12:14 
GeneralRe: Dialog box hangs help me Pin
Anand for every one7-Mar-05 18:56
Anand for every one7-Mar-05 18:56 
GeneralRe: Dialog box hangs help me Pin
Blake Miller8-Mar-05 3:53
Blake Miller8-Mar-05 3:53 
GeneralRe: Dialog box hangs help me Pin
sps-itsec4613-Jan-06 0:14
sps-itsec4613-Jan-06 0:14 
GeneralRe: Dialog box hangs help me Pin
sps-itsec4616-Jan-06 5:26
sps-itsec4616-Jan-06 5:26 
GeneralCall funtion! Pin
JAMANAKA4-Mar-05 15:05
JAMANAKA4-Mar-05 15:05 
GeneralRe: Call funtion! Pin
Ranjish4-Mar-05 19:59
Ranjish4-Mar-05 19:59 
General64bit MFC with vs2005 Pin
saltynuts20024-Mar-05 14:10
saltynuts20024-Mar-05 14:10 
GeneralRe: 64bit MFC with vs2005 Pin
Anonymous4-Mar-05 15:24
Anonymous4-Mar-05 15:24 
GeneralXp windows user managment c++ Pin
nadzzz4-Mar-05 12:07
nadzzz4-Mar-05 12:07 
GeneralCreating tooltip for TBBUTON in ATL Pin
tnguyen4444-Mar-05 11:32
tnguyen4444-Mar-05 11:32 
GeneralMFC Application To Browser Pin
Grahamfff4-Mar-05 10:33
Grahamfff4-Mar-05 10:33 
GeneralRe: MFC Application To Browser Pin
Ravi Bhavnani4-Mar-05 11:32
professionalRavi Bhavnani4-Mar-05 11:32 
GeneralRe: MFC Application To Browser Pin
Sheng Jiang 蒋晟4-Mar-05 11:39
Sheng Jiang 蒋晟4-Mar-05 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.