Menu

How to use NPPM_MSGTOPLUGIN

Franco
2015-04-17
2015-04-17
  • Franco

    Franco - 2015-04-17

    I'm trying to send a message to the the same plugin using NPPM_MSGTOPLUGIN:

    CommunicationInfo ci;
    ci.internalMsg = 123456;
    ci.srcModuleName = _T("me");
    ci.info = NULL;
    SendMessage(nppData._nppHandle, NPPM_MSGTOPLUGIN, (WPARAM)getName(), (LPARAM)&ci);

    it returns 0 and the message is not dispatched

    I'm assuming that the problem is related to the destination module name not being recognized.
    On the other hand I'm using the same getName()... so how can it be different?

    Thank you for your help,

    Franco

     
  • Franco

    Franco - 2015-04-17

    I figures out the issue.
    I requires the DLL name.