Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Message Handler in DLL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Message Handler in DLL

 Post Reply Post Reply
Author
Message
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post Topic: Message Handler in DLL
    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.
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2008 at 5:09pm
I'm sorry, but nothing in your post makes sense to me 

Codejock support
Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post 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,
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2008 at 7:27am
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);
}
 
Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.154 seconds.