Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with Win32 Threads Pin
Rajesh R Subramanian23-Nov-09 2:50
professionalRajesh R Subramanian23-Nov-09 2:50 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 5:15
kikoso23-Nov-09 5:15 
QuestionSubscript requires array or pointer type Pin
deadlyabbas23-Nov-09 0:47
deadlyabbas23-Nov-09 0:47 
AnswerRe: Subscript requires array or pointer type Pin
Cedric Moonen23-Nov-09 1:03
Cedric Moonen23-Nov-09 1:03 
AnswerRe: Subscript requires array or pointer type Pin
T210223-Nov-09 1:29
T210223-Nov-09 1:29 
QuestionHow can i register a service using Visual Studio Setup .??? Pin
jain_MS22-Nov-09 23:53
jain_MS22-Nov-09 23:53 
QuestionLinking problem Pin
KASR122-Nov-09 23:50
KASR122-Nov-09 23:50 
AnswerRe: Linking problem Pin
Cedric Moonen22-Nov-09 23:56
Cedric Moonen22-Nov-09 23:56 
Why do you put the definition of your function in a header file ? Usually it is much better practice to move it to a cpp file.

Anyway, what you can do to remove your problem is make use of include guards. Surround your code in the file with this (replace MYFILE by something unique, typically the file name):
#ifndef MYFILE
#define MYFILE

.... // The rest of the header comes here

#endif


You can also put #pragma once at the top of your file. Google for "include guards" for more information.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Linking problem Pin
KASR122-Nov-09 23:59
KASR122-Nov-09 23:59 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:10
Cedric Moonen23-Nov-09 0:10 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:13
KASR123-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:35
KASR123-Nov-09 0:35 
AnswerRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:02
mveRichard MacCutchan23-Nov-09 0:02 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:10
KASR123-Nov-09 0:10 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:14
Cedric Moonen23-Nov-09 0:14 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:19
KASR123-Nov-09 0:19 
GeneralRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:22
mveRichard MacCutchan23-Nov-09 0:22 
AnswerRe: Linking problem Pin
KarstenK23-Nov-09 0:13
mveKarstenK23-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:14
KASR123-Nov-09 0:14 
AnswerRe: Linking problem PinPopular
Stuart Dootson23-Nov-09 0:22
professionalStuart Dootson23-Nov-09 0:22 
GeneralRe: Linking problem [modified] Pin
KASR123-Nov-09 0:26
KASR123-Nov-09 0:26 
AnswerRe: Linking problem Pin
john563223-Nov-09 3:05
john563223-Nov-09 3:05 
QuestionInteract with Autocad. Pin
Paulraj G22-Nov-09 22:42
Paulraj G22-Nov-09 22:42 
AnswerRe: Interact with Autocad. Pin
KarstenK23-Nov-09 0:11
mveKarstenK23-Nov-09 0:11 
QuestionListbox problem Pin
Chandrasekharan P22-Nov-09 22:15
Chandrasekharan P22-Nov-09 22:15 

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.