flohogun2
  • flohogun2
  • 61.25% (Friendly)
  • Member Topic Starter
11 years ago
Hello,
we have a problem the active x component EAGetMail :

Your sample pop3_imap4_simple.vcNative is working well when compile with the UNICODE Character Sets.
If we compile with the Multibyte Character Sets (MBCSs), then when we try to set the server we can't get it working :
is generating an error during the connect phase :socket error 11001

The error seems to be a string convertion issue :

oServer->put_Server((BSTR)textServer.GetString());

We don t have any problems with the EASendMail component, we used :

m_oSmtp->ServerAddr = _bstr_t((LPCSTR)textServer);

Best regards,

florent

ivan
  • ivan
  • 100% (Exalted)
  • Administration
11 years ago
Hi, if you compile it with MBCS please simply change the code to:


		oServer->Server = textServer.GetString();
		oServer->User = textUser.GetString();
		oServer->Password = textPassword.GetString();

then it should be ok, above codes are also OK with UNICODE. We will fix it in our sample project, thank you very much.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.