Click here to Skip to main content
15,797,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: More basic C++ questions - may I ask? Pin
Ratul Thakur10-Oct-16 22:42
Ratul Thakur10-Oct-16 22:42 
GeneralRe: More basic C++ questions - may I ask? Pin
David Crow11-Oct-16 7:23
David Crow11-Oct-16 7:23 
QuestionHow to initialize a CString array in MSVS C++ 2015 Pin
Member 94114717-Oct-16 9:36
Member 94114717-Oct-16 9:36 
AnswerRe: How to initialize a CString array in MSVS C++ 2015 Pin
jeron17-Oct-16 11:15
jeron17-Oct-16 11:15 
GeneralRe: How to initialize a CString array in MSVS C++ 2015 Pin
Member 941147111-Oct-16 9:48
Member 941147111-Oct-16 9:48 
GeneralRe: How to initialize a CString array in MSVS C++ 2015 Pin
Victor Nijegorodov12-Oct-16 3:57
Victor Nijegorodov12-Oct-16 3:57 
AnswerRe: How to initialize a CString array in MSVS C++ 2015 Pin
Chris Losinger8-Oct-16 7:58
professionalChris Losinger8-Oct-16 7:58 
QuestionUsing / accessing function pointer declaration externally Pin
Vaclav_6-Oct-16 12:05
Vaclav_6-Oct-16 12:05 
OK, this is really simple question, with example code to boot.
The function pointer declaration is this

void (*gpf_isr)(void) = (0UL);

It is used by this function

void UOTGHS_Handler( void )
{
if (gpf_isr)
gpf_isr();
}

and I access it like so

extern void (*gpf_isr)(void);

then I assign my local poiter / version of the function

gpf_isr = ( object ) . UTOGHS_Handler;

The silly question why this also get pass the compiler , no errors
extern void (*gpf_isr)(void) = (0UL);

The pointer gets reassigned , but ...
AnswerRe: Using / accessing function pointer declaration externally Pin
CPallini7-Oct-16 1:43
mveCPallini7-Oct-16 1:43 
GeneralRe: Using / accessing function pointer declaration externally Pin
Vaclav_7-Oct-16 18:39
Vaclav_7-Oct-16 18:39 
GeneralRe: Using / accessing function pointer declaration externally Pin
CPallini8-Oct-16 4:16
mveCPallini8-Oct-16 4:16 
AnswerRe: Using / accessing function pointer declaration externally Pin
Richard MacCutchan7-Oct-16 3:32
mveRichard MacCutchan7-Oct-16 3:32 
QuestionHow to instantiate class with parameters - syntax please ? Pin
Vaclav_2-Oct-16 6:08
Vaclav_2-Oct-16 6:08 
AnswerRe: How to instantiate class with parameters - syntax please ? Pin
Richard MacCutchan2-Oct-16 7:05
mveRichard MacCutchan2-Oct-16 7:05 
AnswerRe: How to instantiate class with parameters - syntax please ? Pin
CPallini2-Oct-16 22:20
mveCPallini2-Oct-16 22:20 
QuestionRe: How to instantiate class with parameters - syntax please ? Pin
Krishnakumartg3-Oct-16 1:07
Krishnakumartg3-Oct-16 1:07 
AnswerRe: How to instantiate class with parameters - syntax please ? Pin
Vaclav_3-Oct-16 6:34
Vaclav_3-Oct-16 6:34 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
leon de boer3-Oct-16 17:25
leon de boer3-Oct-16 17:25 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
Krishnakumartg3-Oct-16 19:12
Krishnakumartg3-Oct-16 19:12 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
leon de boer3-Oct-16 23:49
leon de boer3-Oct-16 23:49 
AnswerRe: How to instantiate class with parameters - syntax please ? Pin
Vaclav_4-Oct-16 3:25
Vaclav_4-Oct-16 3:25 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
Richard MacCutchan4-Oct-16 4:46
mveRichard MacCutchan4-Oct-16 4:46 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
leon de boer4-Oct-16 8:16
leon de boer4-Oct-16 8:16 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
Vaclav_6-Oct-16 11:34
Vaclav_6-Oct-16 11:34 
GeneralRe: How to instantiate class with parameters - syntax please ? Pin
leon de boer6-Oct-16 20:04
leon de boer6-Oct-16 20:04 

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.