Click here to Skip to main content
15,887,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:42
Niklas L8-Sep-05 3:42 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:01
Achim Klein8-Sep-05 4:01 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:58
Niklas L8-Sep-05 3:58 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:01
Niklas L8-Sep-05 4:01 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:08
Achim Klein8-Sep-05 4:08 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:29
Niklas L8-Sep-05 4:29 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 5:43
Achim Klein8-Sep-05 5:43 
Questionfunction pointers and dlls Pin
dave2k8-Sep-05 2:50
dave2k8-Sep-05 2:50 
hi guys.

i am trying to use pointers to functions in my dll to call a function in my .exe

i am storing my pointer in a global variable, so it can be called by any function.

the trouble is, i am finding that it can be only called by my addeventCallback function

i.e.
Code:
#include "dll.h"


EVENTCALLBACK evtcb = NULL;


BOOL WINAPI AddEventCallback(EVENTCALLBACK ptr) {
evtcb = ptr;
evtcb("pass on the message!");
evtcb("pass on the message!");
}


LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam) {
if(nCode < 0)
return CallNextHookEx(0, nCode, wParam, lParam);


evtcb("pass on the message!");

this displays "pass on the message" twicein the console, but when i try to cal evtcb() from GetMsgProc, it does not show again, meaning it has failed somewhere.

i know my GetMsgProc is fine as i have used other indicators such as MessageBepp(0) to show it is working.

what is the problem here?

cheers.

-- modified at 8:50 Thursday 8th September, 2005
QuestionAbout Wizard based project Pin
parims8-Sep-05 1:53
parims8-Sep-05 1:53 
AnswerRe: About Wizard based project Pin
Cedric Moonen8-Sep-05 2:07
Cedric Moonen8-Sep-05 2:07 
QuestionRetrieve text from cursor position Pin
Samik Karmakar8-Sep-05 1:47
Samik Karmakar8-Sep-05 1:47 
AnswerRe: Retrieve text from cursor position Pin
Cedric Moonen8-Sep-05 2:08
Cedric Moonen8-Sep-05 2:08 
GeneralRe: Retrieve text from cursor position Pin
Samik Karmakar8-Sep-05 2:23
Samik Karmakar8-Sep-05 2:23 
GeneralRe: Retrieve text from cursor position Pin
David Crow8-Sep-05 2:44
David Crow8-Sep-05 2:44 
QuestionAltering pattern for a brush Pin
Niklas L8-Sep-05 1:21
Niklas L8-Sep-05 1:21 
QuestionHow to play mp3 repeatedly Pin
Laffis8-Sep-05 1:15
Laffis8-Sep-05 1:15 
AnswerRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 2:23
professionalRavi Bhavnani8-Sep-05 2:23 
GeneralRe: How to play mp3 repeatedly Pin
Laffis8-Sep-05 7:12
Laffis8-Sep-05 7:12 
AnswerRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 7:21
professionalRavi Bhavnani8-Sep-05 7:21 
GeneralRe: How to play mp3 repeatedly Pin
Laffis8-Sep-05 8:12
Laffis8-Sep-05 8:12 
GeneralRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 8:22
professionalRavi Bhavnani8-Sep-05 8:22 
QuestionMsn Chat Window Pin
Ahmed_Barakat8-Sep-05 1:11
Ahmed_Barakat8-Sep-05 1:11 
GeneralRe: Msn Chat Window Pin
prasad_som8-Sep-05 3:02
prasad_som8-Sep-05 3:02 
QuestionMultiLanguage Support Pin
Identity Undisclosed8-Sep-05 1:08
Identity Undisclosed8-Sep-05 1:08 
AnswerRe: MultiLanguage Support Pin
MailtoGops8-Sep-05 2:42
MailtoGops8-Sep-05 2:42 

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.