Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: read data from text file, extract and display in excel format Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:20
Iain Clarke, Warrior Programmer19-Jun-07 0:20 
GeneralRe: read data from text file, extract and display in excel format Pin
Rage19-Jun-07 0:23
professionalRage19-Jun-07 0:23 
AnswerRe: read data from text file, extract and display in excel format Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:28
Iain Clarke, Warrior Programmer19-Jun-07 0:28 
AnswerRe: read data from text file, extract and display in excel format Pin
David Crow19-Jun-07 4:00
David Crow19-Jun-07 4:00 
QuestionWizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 22:39
Abhijeet Pathak18-Jun-07 22:39 
AnswerRe: Wizard Style Dialogs Pin
_AnsHUMAN_ 18-Jun-07 22:43
_AnsHUMAN_ 18-Jun-07 22:43 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 22:49
Abhijeet Pathak18-Jun-07 22:49 
GeneralRe: Wizard Style Dialogs Pin
_AnsHUMAN_ 18-Jun-07 22:55
_AnsHUMAN_ 18-Jun-07 22:55 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 23:06
Abhijeet Pathak18-Jun-07 23:06 
AnswerRe: Wizard Style Dialogs Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:37
Iain Clarke, Warrior Programmer19-Jun-07 0:37 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak19-Jun-07 1:27
Abhijeet Pathak19-Jun-07 1:27 
GeneralRe: Wizard Style Dialogs Pin
Roger Stoltz19-Jun-07 2:56
Roger Stoltz19-Jun-07 2:56 
QuestionRemove item from a vector? Pin
bosfan18-Jun-07 21:27
bosfan18-Jun-07 21:27 
AnswerRe: Remove item from a vector? Pin
RChin18-Jun-07 21:36
RChin18-Jun-07 21:36 
AnswerRe: Remove item from a vector? Pin
Cedric Moonen18-Jun-07 22:44
Cedric Moonen18-Jun-07 22:44 
QuestionA quiz here C or C++ Pin
C_Zealot18-Jun-07 20:56
C_Zealot18-Jun-07 20:56 
AnswerRe: A quiz here C or C++ Pin
BadKarma18-Jun-07 21:34
BadKarma18-Jun-07 21:34 
AnswerRe: A quiz here C or C++ Pin
RChin18-Jun-07 21:38
RChin18-Jun-07 21:38 
AnswerRe: A quiz here C or C++ Pin
Matthew Faithfull18-Jun-07 22:02
Matthew Faithfull18-Jun-07 22:02 
You don't have to do anything at all in the file where the function is written. Big Grin | :-D

<br />
//somecode.cpp<br />
void AFunc(int& i)<br />
{<br />
//Do Stuff<br />
}<br />


<br />
//othercode.cpp<br />
<br />
//extern prototypes declaration makes the linker look in the other files for this function<br />
extern void AFunc(int i);<br />
<br />
int BFunc(void)<br />
{<br />
  int i = 6;<br />
  AFunc(i);<br />
  return i;<br />
}<br />


It's the C way of doing things but it works just fine in C++. Often the prototype is actually in a header file so you can pull in lots of functions with one #include


Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: A quiz here C or C++ [modified] Pin
BadKarma18-Jun-07 22:05
BadKarma18-Jun-07 22:05 
GeneralRe: A quiz here C or C++ Pin
Matthew Faithfull19-Jun-07 3:52
Matthew Faithfull19-Jun-07 3:52 
GeneralRe: A quiz here C or C++ Pin
BadKarma20-Jun-07 12:32
BadKarma20-Jun-07 12:32 
GeneralRe: A quiz here C or C++ Pin
C_Zealot18-Jun-07 22:19
C_Zealot18-Jun-07 22:19 
AnswerRe: A quiz here C or C++ Pin
Mark Salsbery19-Jun-07 8:07
Mark Salsbery19-Jun-07 8:07 
QuestionError message when I try to builder a aplication on VC++ Pin
Tuongnd18-Jun-07 20:47
Tuongnd18-Jun-07 20:47 

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.