Click here to Skip to main content
16,005,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't set windows hook - what wrong with my code ? Pin
Gary R. Wheeler23-Dec-06 4:10
Gary R. Wheeler23-Dec-06 4:10 
QuestionATL Object wizard Pin
messages22-Dec-06 21:02
messages22-Dec-06 21:02 
AnswerRe: ATL Object wizard Pin
Jeffrey Walton23-Dec-06 5:10
Jeffrey Walton23-Dec-06 5:10 
QuestionCBEM_INSERTITEM fails Pin
khv_inviZ22-Dec-06 20:03
khv_inviZ22-Dec-06 20:03 
AnswerRe: CBEM_INSERTITEM fails Pin
Mark Salsbery23-Dec-06 7:08
Mark Salsbery23-Dec-06 7:08 
AnswerRe: CBEM_INSERTITEM fails Pin
CPallini23-Dec-06 8:26
mveCPallini23-Dec-06 8:26 
QuestionPlugin Interface Question Pin
User 1278222-Dec-06 12:43
User 1278222-Dec-06 12:43 
AnswerRe: Plugin Interface Question Pin
Gary R. Wheeler23-Dec-06 3:09
Gary R. Wheeler23-Dec-06 3:09 
Since you are using DLL's for your plugins, you can pass the address of a callback function in your host to the DLL. The DLL can then call that function when it needs to tell the host something. When you pass the callback function to the DLL, you'll also want to pass an identifying value to the DLL at the same time. The DLL, when it calls the callback function, passes the identifying value in addition to any other arguments required. The host can then use the identifying value to determine which plugin called the callback function.

This is similar to the Windows API approach for a wide variety of things. This is a lot simpler and more flexible than the registered message approach.


Software Zen: delete this;

GeneralRe: Plugin Interface Question Pin
User 1278227-Dec-06 11:39
User 1278227-Dec-06 11:39 
QuestionWin-Sockets / Unicode Pin
FreeCastle22-Dec-06 9:44
FreeCastle22-Dec-06 9:44 
AnswerRe: Win-Sockets / Unicode Pin
Mark Salsbery22-Dec-06 12:04
Mark Salsbery22-Dec-06 12:04 
GeneralRe: Win-Sockets / Unicode Pin
FreeCastle22-Dec-06 20:57
FreeCastle22-Dec-06 20:57 
GeneralRe: Win-Sockets / Unicode Pin
Gary R. Wheeler23-Dec-06 3:12
Gary R. Wheeler23-Dec-06 3:12 
GeneralRe: Win-Sockets / Unicode Pin
Mark Salsbery23-Dec-06 6:52
Mark Salsbery23-Dec-06 6:52 
GeneralRe: Win-Sockets / Unicode Pin
FreeCastle28-Dec-06 3:57
FreeCastle28-Dec-06 3:57 
QuestionHandling images Pin
hint_5422-Dec-06 9:04
hint_5422-Dec-06 9:04 
AnswerRe: Handling images Pin
Mark Salsbery22-Dec-06 12:08
Mark Salsbery22-Dec-06 12:08 
GeneralRe: Handling images Pin
hint_5422-Dec-06 12:32
hint_5422-Dec-06 12:32 
AnswerRe: Handling images Pin
Mark Salsbery22-Dec-06 12:47
Mark Salsbery22-Dec-06 12:47 
GeneralRe: Handling images Pin
hint_5422-Dec-06 12:55
hint_5422-Dec-06 12:55 
Questioninclude file search sequence Pin
WBurgMo22-Dec-06 7:21
WBurgMo22-Dec-06 7:21 
AnswerRe: include file search sequence Pin
John R. Shaw23-Dec-06 12:27
John R. Shaw23-Dec-06 12:27 
QuestionIs there a way to tell how much memory you're using? Pin
BarryOg22-Dec-06 5:48
BarryOg22-Dec-06 5:48 
AnswerRe: Is there a way to tell how much memory you're using? Pin
Mark Salsbery22-Dec-06 6:03
Mark Salsbery22-Dec-06 6:03 
QuestionC++ Windows CE code to XP Pin
KellyR22-Dec-06 2:54
KellyR22-Dec-06 2:54 

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.