Click here to Skip to main content
15,922,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan17-Sep-11 3:03
mveRichard MacCutchan17-Sep-11 3:03 
AnswerRe: How to handle Column Click in a multi column list box Pin
Amrit Agr18-Sep-11 19:25
Amrit Agr18-Sep-11 19:25 
GeneralRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan18-Sep-11 23:04
mveRichard MacCutchan18-Sep-11 23:04 
GeneralRe: How to handle Column Click in a multi column list box Pin
David Crow19-Sep-11 3:26
David Crow19-Sep-11 3:26 
GeneralRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan19-Sep-11 4:00
mveRichard MacCutchan19-Sep-11 4:00 
GeneralRe: How to handle Column Click in a multi column list box Pin
David Crow19-Sep-11 4:40
David Crow19-Sep-11 4:40 
JokeRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan19-Sep-11 5:04
mveRichard MacCutchan19-Sep-11 5:04 
AnswerRe: How to handle Column Click in a multi column list box - caution long post Pin
enhzflep19-Sep-11 15:41
enhzflep19-Sep-11 15:41 
QuestionShellExecuteEx for windows7 Pin
MKC00216-Sep-11 22:47
MKC00216-Sep-11 22:47 
AnswerRe: ShellExecuteEx for windows7 Pin
Software_Developer17-Sep-11 10:53
Software_Developer17-Sep-11 10:53 
AnswerRe: ShellExecuteEx for windows7 Pin
Philippe Mori17-Sep-11 14:27
Philippe Mori17-Sep-11 14:27 
GeneralRe: ShellExecuteEx for windows7 Pin
MKC00219-Sep-11 7:00
MKC00219-Sep-11 7:00 
QuestionRe: ShellExecuteEx for windows7 Pin
David Crow19-Sep-11 8:07
David Crow19-Sep-11 8:07 
AnswerRe: ShellExecuteEx for windows7 Pin
MKC00220-Sep-11 6:58
MKC00220-Sep-11 6:58 
QuestionRe: ShellExecuteEx for windows7 Pin
David Crow20-Sep-11 9:15
David Crow20-Sep-11 9:15 
AnswerRe: ShellExecuteEx for windows7 Pin
MKC00221-Sep-11 4:12
MKC00221-Sep-11 4:12 
AnswerRe: ShellExecuteEx for windows7 Pin
MKC00223-Sep-11 0:50
MKC00223-Sep-11 0:50 
AnswerRe: ShellExecuteEx for windows7 Pin
MKC00225-Sep-11 2:37
MKC00225-Sep-11 2:37 
QuestionPointer Casting warning Pin
Software200715-Sep-11 8:57
Software200715-Sep-11 8:57 
QuestionRe: Pointer Casting warning Pin
David Crow15-Sep-11 9:08
David Crow15-Sep-11 9:08 
AnswerRe: Pointer Casting warning Pin
Software200715-Sep-11 9:36
Software200715-Sep-11 9:36 
AnswerRe: Pointer Casting warning Pin
krmed15-Sep-11 10:04
krmed15-Sep-11 10:04 
GeneralRe: Pointer Casting warning Pin
Software200715-Sep-11 10:17
Software200715-Sep-11 10:17 
AnswerRe: Pointer Casting warning Pin
Chuck O'Toole15-Sep-11 10:53
Chuck O'Toole15-Sep-11 10:53 
Because the unix / posix libraries work with either C or C++, they all declare their external functions as 'extern "C"' to get the C calling conventions. This is done in the header files, in your case, Signal.h

C#
#ifdef  __cplusplus
extern "C" {
#endif



The field sa_handler needs to point to a function that is declared as "C" callable. Use __cdecl. Note that C calling conventions also affect how the stack arguments are cleaned up so unless you declare the action function correctly, you will end up with stack corruption problems later.

C#
void __cdecl handle_alarm() {
    alarm_timededout_=TRUE;
    ...
    }

AnswerRe: Pointer Casting warning Pin
tushar_patil20-Sep-11 20:57
tushar_patil20-Sep-11 20: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.