Print Page | Close Window

Message Handler in DLL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12569
Printed Date: 23 June 2025 at 4:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Message Handler in DLL
Posted By: barobax
Subject: Message Handler in DLL
Date Posted: 29 October 2008 at 4:26pm
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.



Replies:
Posted By: ABuenger
Date Posted: 29 October 2008 at 5:09pm
I'm sorry, but nothing in your post makes sense to me 



-------------
Codejock support


Posted By: barobax
Date Posted: 29 October 2008 at 5:45pm
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,


Posted By: Oleg
Date Posted: 30 October 2008 at 3:11am

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


Posted By: barobax
Date Posted: 30 October 2008 at 6:04am
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.


Posted By: znakeeye
Date Posted: 30 October 2008 at 7:27am
Actually, this one is really tricky. Take a look here:
http://support.microsoft.com/kb/154126 - http://support.microsoft.com/kb/154126
 
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);
}
 


Posted By: barobax
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net