Message Handler in DLL |
Post Reply |
Author | |
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 30 October 2008 at 3:26pm |
Hi All,
Thanks Znakeeye for your request. I read but can not help me in message handling. Thanks, Best Regards. |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Actually, this one is really tricky. Take a look here:
You need to manually add your DLL to the resource chain! Something like this:
static AFX_EXTENSION_MODULE MyDLL = { NULL, NULL }; ... extern "C" void WINAPI InitMyDLL() { new CDynLinkLibrary(MyDLL); } |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi All,
Thanks for your replies Oleg && ABuenger,when I add ON_COMMAND for an string ID in dll, my method don't work and do not recieve message.I Must load strings in dll with instance handle and else don't load string.what do I do for messages ?!? Thanks again for your replies. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You explained it very bad. With such description I don't think somebody can help. What is CMenu Extended class. How you assign string, how you create menu...etc.etc.etc.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
I tried to explain my problem and need help from you and other codejock users.I sent many posts in codeguru forum but there is better than any forum for VC++ on the internet.
Thanks ABuenger, |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
I'm sorry, but nothing in your post makes sense to me
|
|
Codejock support
|
|
barobax
Senior Member Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Hi,
I have a CMenu Extended class in dll and assign a string to a Menu Item and want to add ON_COMMAND for IDS_STRING.BUT I can't handle a message by string in my DLL. Thanks in Advance, Best Regards. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |