Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help!!!!! about image show Pin
Christian Graus24-Feb-03 23:05
protectorChristian Graus24-Feb-03 23:05 
Generaltoolbar images Pin
Dudi Avramov24-Feb-03 22:03
Dudi Avramov24-Feb-03 22:03 
GeneralRe: toolbar images Pin
Anna-Jayne Metcalfe24-Feb-03 22:20
Anna-Jayne Metcalfe24-Feb-03 22:20 
GeneralRe: toolbar images Pin
Dudi Avramov24-Feb-03 23:06
Dudi Avramov24-Feb-03 23:06 
GeneralRe: toolbar images Pin
ROK_RShadow25-Feb-03 0:12
ROK_RShadow25-Feb-03 0:12 
GeneralRe: toolbar images Pin
Dudi Avramov25-Feb-03 1:23
Dudi Avramov25-Feb-03 1:23 
GeneralCompile errors Pin
msh24-Feb-03 21:39
msh24-Feb-03 21:39 
GeneralRe: Compile errors Pin
benjymous25-Feb-03 0:36
benjymous25-Feb-03 0:36 
Are you try to do something like
#include "C:\Program Files\Microsoft Visual Studio\VC98\Include\stdio.h"

by any chance?

This is where the difference with include "file" and include <file> comes in.

If you're including a standard system header, just do
#include <stdio.h>

and the compiler will find the header for you.

If it's a header you've written yourself, then it should either be in the same directory as the project, or a "near by" folder, in which case you can just do
#include "myheader.h"

or
#include "../commonheaders/myheader.h"

for example (though in this case, it'd be better to add the "commonheaders" folder into the VC include folders settings, then it'll find it without needing to specify the path)

If you have a common header that's used in multiple projects, you can use source control (i.e. SourceSafe) to share a single file across multiple projects and keep them in sync for you

Hard coding exact directory paths into sourcecode is very bad, as it locks down the code to your specific PC. If you hand the source to someone else to work on, they'll have to have their directory layout identical to yours in order to be able to compile the code, which isn't particularly desirable

--
Help me! I'm turning into a grapefruit!

QuestionHow to connect to Database in Dynamic Pin
Exceter24-Feb-03 18:35
Exceter24-Feb-03 18:35 
QuestionHelp w/ Distributed Search Algorithm? Pin
AAntix24-Feb-03 18:11
AAntix24-Feb-03 18:11 
AnswerRe: Help w/ Distributed Search Algorithm? Pin
Joaquín M López Muñoz24-Feb-03 21:08
Joaquín M López Muñoz24-Feb-03 21:08 
GeneralRe: Help w/ Distributed Search Algorithm? Pin
AAntix24-Feb-03 21:14
AAntix24-Feb-03 21:14 
GeneralBeginner Line Numbers Question Pin
John Dory24-Feb-03 17:28
John Dory24-Feb-03 17:28 
GeneralRe: Beginner Line Numbers Question Pin
Christian Graus24-Feb-03 17:43
protectorChristian Graus24-Feb-03 17:43 
GeneralRe: Beginner Line Numbers Question Pin
John Dory24-Feb-03 19:37
John Dory24-Feb-03 19:37 
GeneralRe: Beginner Line Numbers Question Pin
Jambolo24-Feb-03 18:32
Jambolo24-Feb-03 18:32 
GeneralRe: Beginner Line Numbers Question Pin
malayhk 16-Dec-09 20:02
malayhk 16-Dec-09 20:02 
GeneralRe: Beginner Line Numbers Question Pin
malayhk 16-Dec-09 20:02
malayhk 16-Dec-09 20:02 
GeneralAutoComplete List Selector Pin
ROK_RShadow24-Feb-03 16:43
ROK_RShadow24-Feb-03 16:43 
GeneralRe: AutoComplete List Selector Pin
Chris Losinger24-Feb-03 17:38
professionalChris Losinger24-Feb-03 17:38 
GeneralRe: AutoComplete List Selector Pin
Jambolo24-Feb-03 18:35
Jambolo24-Feb-03 18:35 
GeneralRe: AutoComplete List Selector Pin
ROK_RShadow24-Feb-03 19:00
ROK_RShadow24-Feb-03 19:00 
GeneralHelp with context help in dialog app (VS6.0) Pin
work_to_live24-Feb-03 16:30
work_to_live24-Feb-03 16:30 
GeneralRe: Help with context help in dialog app (VS6.0) Pin
Anna-Jayne Metcalfe24-Feb-03 22:28
Anna-Jayne Metcalfe24-Feb-03 22:28 
GeneralRe: Help with context help in dialog app (VS6.0) Pin
work_to_live25-Feb-03 4:32
work_to_live25-Feb-03 4:32 

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.