Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialog window class name? Pin
David Crow20-Sep-04 10:28
David Crow20-Sep-04 10:28 
AnswerRe: Dialog window class name? Pin
Jörgen Sigvardsson20-Sep-04 13:27
Jörgen Sigvardsson20-Sep-04 13:27 
AnswerRe: Dialog window class name? Pin
Sujan Christo20-Sep-04 18:00
Sujan Christo20-Sep-04 18:00 
QuestionHow to programmatically show and hide Windows XP destktop icons? Pin
Steve Messer20-Sep-04 7:08
Steve Messer20-Sep-04 7:08 
GeneralC++ question Pin
Anonymous20-Sep-04 6:20
Anonymous20-Sep-04 6:20 
GeneralRe: C++ question Pin
Bob Stanneveld20-Sep-04 6:34
Bob Stanneveld20-Sep-04 6:34 
GeneralRe: C++ question - sorry Pin
Anonymous20-Sep-04 6:52
Anonymous20-Sep-04 6:52 
GeneralRe: C++ question - sorry Pin
Bob Stanneveld20-Sep-04 6:57
Bob Stanneveld20-Sep-04 6:57 
Hello,

In that case, you simply need to declare the function before you use it. The most common case would be in a header file. The implementation is done in the corresponding .cpp file. For exemple:
Consider your function MyFunc, in the header file (say MyHeader.h) you declare the function like this: void MyFunc();
You define the function in the implementation file say MyFunc.cpp like this:
<br />
void MyFunc()<br />
{<br />
  // do something<br />
}<br />

Whenever you want to use MyFunc, just include MyFunc.h at the top of the file where you use the function.



Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.

GeneralRe: C++ question - sorry Pin
Anonymous20-Sep-04 7:40
Anonymous20-Sep-04 7:40 
GeneralRe: C++ question - sorry Pin
Bob Stanneveld20-Sep-04 9:08
Bob Stanneveld20-Sep-04 9:08 
GeneralRe: C++ question - sorry Pin
David Crow20-Sep-04 10:25
David Crow20-Sep-04 10:25 
GeneralPlease explain this. Pin
V.20-Sep-04 5:29
professionalV.20-Sep-04 5:29 
GeneralRe: Please explain this. Pin
David Crow20-Sep-04 5:33
David Crow20-Sep-04 5:33 
GeneralRe: Please explain this. Pin
BlackDice20-Sep-04 6:11
BlackDice20-Sep-04 6:11 
GeneralRe: Please explain this. Pin
David Crow20-Sep-04 6:16
David Crow20-Sep-04 6:16 
GeneralRe: Please explain this. Pin
Michael Dunn20-Sep-04 10:54
sitebuilderMichael Dunn20-Sep-04 10:54 
GeneralRe: Please explain this. Pin
V.20-Sep-04 21:06
professionalV.20-Sep-04 21:06 
GeneralRe: Please explain this. Pin
RChin21-Sep-04 1:00
RChin21-Sep-04 1:00 
Generaloverriding a control's virtual functions Pin
BlackDice20-Sep-04 4:09
BlackDice20-Sep-04 4:09 
GeneralRe: overriding a control's virtual functions Pin
Maximilien20-Sep-04 4:14
Maximilien20-Sep-04 4:14 
GeneralRESOLVED Pin
BlackDice20-Sep-04 4:55
BlackDice20-Sep-04 4:55 
GeneralMac Address Pin
shiraztk20-Sep-04 4:00
shiraztk20-Sep-04 4:00 
GeneralRe: Mac Address Pin
David Crow20-Sep-04 5:22
David Crow20-Sep-04 5:22 
GeneralRe: Mac Address Pin
Antony M Kancidrowski20-Sep-04 5:45
Antony M Kancidrowski20-Sep-04 5:45 
GeneralRe: Mac Address Pin
shiraztk20-Sep-04 7:31
shiraztk20-Sep-04 7:31 

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.