Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Anasuya2015

@Anasuya2015
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to communicate between two different app using SendMessage API?
    A Anasuya2015

    Here requirement is restrict to SendMessage() API. Anyway thanks for your answer. Can you send any sample code for Named Pipes implementation?

    C / C++ / MFC c++ json tutorial question

  • How to communicate between two different app using SendMessage API?
    A Anasuya2015

    I am just finding the way to print the message. So you mean to say it is not needed and directly we can use lparam to print the message?

    C / C++ / MFC c++ json tutorial question

  • How to communicate between two different app using SendMessage API?
    A Anasuya2015

    Thanks for your help. I am facing issue in extracting the message. Code is as follows... APP1:

    int WM_MYMSG = RegisterWindowMessage (L"MYMESSAGE");
    HWND hw = FindWindow(NULL, L"Demo");
    LPCTSTR strMsg = L"ClientDemo1";
    //Send that message
    ::SendMessage(hw, WM_MYMSG, NULL, (LPARAM(LPCTSTR)strMsg);

    APP2:

    LRESULT CDemoDlg::OnMyMsg(WPARAM w, LPARAM l) {

    MSG\* p = (MSG\*)l;
    LPCTSTR str = (LPCTSTR)p->message;
    MessageBox(str);// No message. But getting the alert while sending message. Need to extract the actual msg here.
    
    return (LRESULT) 0;
    

    }

    Please let me know what changes is needed here by which it'll display "ClientDemo1" in msgbox.

    C / C++ / MFC c++ json tutorial question

  • How to communicate between two different app using SendMessage API?
    A Anasuya2015

    How to communicate between two different app using Send Message API? Ex: APP1 having textbox txtBox1 APP2 having textbox txtBox2 In txtbox1 whats ever we type, that needs to be displayed in textbox2. How to achieve it using SendMessage() API. Ex code in VC++ is appreciated.

    C / C++ / MFC c++ json tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups