CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: postmessage

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    3

    postmessage

    I am very new to MFC DLL.
    class CMyMFCDllApp : public CWinApp
    {
    //..
    };

    .cpp file:
    __declspec(dllexport) int __stdcall Func()
    {
    ComputeCalc();
    return 0;
    }

    void CallFunc()
    {
    //I like to call Func using PostMessage.
    }

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: postmessage

    I don't understand your question;
    Why PostMessage?
    Func() is exported from the DLL, so you can call it directly an app that links to the DLL.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured