Click here to Skip to main content
15,920,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminating a process Pin
Stephen Hewitt13-Nov-06 13:21
Stephen Hewitt13-Nov-06 13:21 
QuestionAutomation server - Coclass registration problem Pin
User 21559713-Nov-06 6:48
User 21559713-Nov-06 6:48 
QuestionMessage Map doesn't work in dynamically loaded dll Pin
Stefan Rehling13-Nov-06 6:39
Stefan Rehling13-Nov-06 6:39 
AnswerRe: Message Map doesn't work in dynamically loaded dll Pin
Mark Salsbery13-Nov-06 7:29
Mark Salsbery13-Nov-06 7:29 
GeneralRe: Message Map doesn't work in dynamically loaded dll Pin
Stefan Rehling13-Nov-06 8:05
Stefan Rehling13-Nov-06 8:05 
GeneralRe: Message Map doesn't work in dynamically loaded dll Pin
Mark Salsbery13-Nov-06 8:27
Mark Salsbery13-Nov-06 8:27 
GeneralRe: Message Map doesn't work in dynamically loaded dll Pin
Mark Salsbery13-Nov-06 8:46
Mark Salsbery13-Nov-06 8:46 
GeneralRe: Message Map doesn't work in dynamically loaded dll Pin
Stefan Rehling13-Nov-06 22:31
Stefan Rehling13-Nov-06 22:31 
I found out whats going on.
I overwrote the OnCmdMessage function because stupid as I am I thought that I am not able to make dynamic message map entries like this:

<br />
ON_COMMAND(g_iFirstCmdID + CMDID_STABILITY_TRACE, OnStabilityTrace)<br />


I thought, that the first parameter in the macro has to be a constant.

The EXE dynamically distributes ranges of command IDs to all the connected Plugin DLLs. A DLL simply says at connection time how many CmdIDs it requires and then the EXE preserves this amount of IDs from a specific start-ID on. This start-ID depends on how many plugin are already connected and how many CmdIDs they require.

So I overwrote the OnCmdMessage function and the effect was that WM_COMMAND messages were not delivered to the message map. The ON_CBN_SELCHANGE of my ComboBox is also WM_COMMAND based.

I found that I received the message ON_CBN_SELCHANGE in OnCmdMessage. After that I tried to delete the OnCmdMessage and change the message map entries like above.

It works perfectly now!! Maybe I'll write an arcticle about the plugin system...

Thanks for help!
QuestionafxOccMgr and pWndCtrl problems Pin
earlgraham13-Nov-06 6:36
earlgraham13-Nov-06 6:36 
QuestionMultiLanguage Engine Pin
dannygilbert313-Nov-06 6:11
dannygilbert313-Nov-06 6:11 
AnswerRe: MultiLanguage Engine Pin
toxcct13-Nov-06 6:19
toxcct13-Nov-06 6:19 
AnswerRe: MultiLanguage Engine Pin
ThatsAlok13-Nov-06 7:00
ThatsAlok13-Nov-06 7:00 
QuestionExtern and CLASS Pin
dannygilbert313-Nov-06 6:10
dannygilbert313-Nov-06 6:10 
AnswerRe: Extern and CLASS Pin
Mark Salsbery13-Nov-06 6:16
Mark Salsbery13-Nov-06 6:16 
AnswerRe: Extern and CLASS Pin
toxcct13-Nov-06 6:17
toxcct13-Nov-06 6:17 
AnswerRe: Extern and CLASS Pin
James R. Twine13-Nov-06 6:26
James R. Twine13-Nov-06 6:26 
AnswerRe: Extern and CLASS Pin
ThatsAlok13-Nov-06 7:00
ThatsAlok13-Nov-06 7:00 
Question2 CFileDialogs Pin
Desmo1613-Nov-06 6:07
Desmo1613-Nov-06 6:07 
AnswerRe: 2 CFileDialogs Pin
James R. Twine13-Nov-06 6:09
James R. Twine13-Nov-06 6:09 
AnswerRe: 2 CFileDialogs Pin
toxcct13-Nov-06 6:09
toxcct13-Nov-06 6:09 
GeneralRe: 2 CFileDialogs Pin
Desmo1613-Nov-06 6:36
Desmo1613-Nov-06 6:36 
GeneralRe: 2 CFileDialogs [modified] Pin
toxcct13-Nov-06 6:47
toxcct13-Nov-06 6:47 
GeneralRe: 2 CFileDialogs Pin
Desmo1613-Nov-06 6:54
Desmo1613-Nov-06 6:54 
GeneralRe: 2 CFileDialogs Pin
toxcct13-Nov-06 6:55
toxcct13-Nov-06 6:55 
GeneralRe: 2 CFileDialogs Pin
Desmo1613-Nov-06 23:51
Desmo1613-Nov-06 23:51 

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.