Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Charts in Visual C++ 6.0 Pin
Hans Dietrich24-Jun-07 9:53
mentorHans Dietrich24-Jun-07 9:53 
QuestionAbout Grid in visual C++ Pin
mt_samiei24-Jun-07 2:13
mt_samiei24-Jun-07 2:13 
AnswerRe: About Grid in visual C++ Pin
Arris7424-Jun-07 2:41
Arris7424-Jun-07 2:41 
QuestionRegistry access on another Windows Installation Pin
Akin Ocal23-Jun-07 20:09
Akin Ocal23-Jun-07 20:09 
AnswerRe: Registry access on another Windows Installation Pin
Perspx23-Jun-07 22:00
Perspx23-Jun-07 22:00 
QuestionMIDI to WAVE converter Pin
Jacky98423-Jun-07 19:08
Jacky98423-Jun-07 19:08 
QuestionRedirection of buffer data to sound card and storing output as .wav file Pin
patelviral23-Jun-07 18:32
patelviral23-Jun-07 18:32 
QuestionFunction Pointer Vector Pin
0rigin23-Jun-07 16:26
0rigin23-Jun-07 16:26 
I want to make a vector that holds function pointers. I can't seem to make the vector happy when defining it unless I define the function pointer using typedef first. Example:

	<br />
typedef void (*BasicObjectListener)( BasicObject *object );<br />
std::vector<BasicObjectListener> EnabledChanged;<br />


But if I call the follow public function from another class it isn't able to convert the functoin pointer I want to pass to a "BasicObjectListener", though the function I'm passing is the same as a "BasicObjectListener".

<br />
void BasicObject::Enabled_AddListener( BasicObjectListener function )<br />
{<br />
	EnabledChanged.push_back( function );<br />
};<br />


So I'm currently trying to find a way to define the vector without using typedef because then I can replace all the "BasicObjectListener"s with the function pointer code.

Help me Cry | :((
AnswerRe: Function Pointer Vector Pin
Mark Salsbery23-Jun-07 20:28
Mark Salsbery23-Jun-07 20:28 
GeneralRe: Function Pointer Vector Pin
0rigin23-Jun-07 20:55
0rigin23-Jun-07 20:55 
GeneralRe: Function Pointer Vector Pin
Mark Salsbery23-Jun-07 21:16
Mark Salsbery23-Jun-07 21:16 
GeneralRe: Function Pointer Vector Pin
Cyrilix24-Jun-07 8:34
Cyrilix24-Jun-07 8:34 
GeneralRe: Function Pointer Vector Pin
0rigin24-Jun-07 8:53
0rigin24-Jun-07 8:53 
GeneralRe: Function Pointer Vector Pin
Cyrilix24-Jun-07 9:16
Cyrilix24-Jun-07 9:16 
QuestionDistribution in .NET 8 Pin
Dave Kerr23-Jun-07 13:41
mentorDave Kerr23-Jun-07 13:41 
AnswerRe: Distribution in .NET 8 Pin
Christian Graus23-Jun-07 14:00
protectorChristian Graus23-Jun-07 14:00 
GeneralRe: Distribution in .NET 8 Pin
Dave Kerr24-Jun-07 0:00
mentorDave Kerr24-Jun-07 0:00 
GeneralRe: Distribution in .NET 8 Pin
Mark Salsbery24-Jun-07 6:18
Mark Salsbery24-Jun-07 6:18 
Questionhow to dynamically access to a function or to its name? Pin
Arris7423-Jun-07 10:05
Arris7423-Jun-07 10:05 
AnswerRe: how to dynamically access to a function or to its name? Pin
dabs23-Jun-07 10:37
dabs23-Jun-07 10:37 
GeneralRe: how to dynamically access to a function or to its name? Pin
Arris7423-Jun-07 10:51
Arris7423-Jun-07 10:51 
GeneralRe: how to dynamically access to a function or to its name? Pin
dabs23-Jun-07 15:38
dabs23-Jun-07 15:38 
Questionconversion function for midi to wave in MFC/VC++ 6.0 Pin
patelviral23-Jun-07 10:01
patelviral23-Jun-07 10:01 
QuestionAPI function to get the CPU load Pin
mbrezu223-Jun-07 8:55
mbrezu223-Jun-07 8:55 
AnswerRe: API function to get the CPU load Pin
Mike Dimmick24-Jun-07 12:34
Mike Dimmick24-Jun-07 12:34 

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.