Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Error message when I try to builder a aplication on VC++ Pin
Tuongnd18-Jun-07 21:07
Tuongnd18-Jun-07 21:07 
QuestionHOW i CAN switch from one menu window to another menu window? Pin
vikramkarthik18-Jun-07 20:36
vikramkarthik18-Jun-07 20:36 
AnswerRe: HOW i CAN switch from one menu window to another menu window? Pin
ashokbngr18-Jun-07 20:53
ashokbngr18-Jun-07 20:53 
GeneralRe: HOW i CAN switch from one menu window to another menu window? Pin
vikramkarthik18-Jun-07 21:06
vikramkarthik18-Jun-07 21:06 
QuestionRe: HOW i CAN switch from one menu window to another menu window? Pin
Mark Salsbery19-Jun-07 8:08
Mark Salsbery19-Jun-07 8:08 
QuestionChange ActiveX's property cause fatal error! Pin
kingliub18-Jun-07 20:20
kingliub18-Jun-07 20:20 
QuestionHow to change the background color of menu bar... Pin
BlrBoy18-Jun-07 20:16
BlrBoy18-Jun-07 20:16 
AnswerRe: How to change the background color of menu bar... Pin
Hamid_RT18-Jun-07 20:31
Hamid_RT18-Jun-07 20:31 
GeneralRe: How to change the background color of menu bar... Pin
BlrBoy18-Jun-07 20:36
BlrBoy18-Jun-07 20:36 
QuestionHOW to call a menu dialog box from one to another? Pin
vikramkarthik18-Jun-07 18:41
vikramkarthik18-Jun-07 18:41 
QuestionRe: HOW to call a menu dialog box from one to another? Pin
Hamid_RT18-Jun-07 18:57
Hamid_RT18-Jun-07 18:57 

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.