locked
use of cdosys RRS feed

  • Discussion générale

  •  

    I have a C++ sofware using cdosys.dll to send mails.

    This sofware works fine on Window XP but fails on the API "Send" on Windows Vista.

     

    IMessage *PSmsg = NULL;

    HRESULT Hres = CoCreateInstance(CLSID_Message, NULL, CLSCTX_INPROC_SERVER,

    IID_IMessage, reinterpret_cast<void**>(&PSmsg));

    .../...

    Hres = PSmsg->Send();

    if (FAILED (Hres)) {

        AfxMessageBox (_T("Error !"));

      return false;

    }

     

    Smtp Service is running

    WinMail may send and receive mails.

    What should I do ?

    jeudi 26 juillet 2007 10:13