Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
flohogun2  
#1 Posted : Tuesday, September 9, 2014 4:04:37 PM(UTC)
flohogun2

Rank: Member

Groups: Registered
Joined: 12/23/2010(UTC)
Posts: 24
Location: rennes

Thanks: 8 times
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  
#2 Posted : Tuesday, September 9, 2014 5:22:03 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, if you compile it with MBCS please simply change the code to:

Code:

		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.

Edited by user Tuesday, September 9, 2014 5:30:50 PM(UTC)  | Reason: Not specified

thanks 1 user thanked ivan for this useful post.
flohogun2 on 9/10/2014(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.042 seconds.

EXPLORE TUTORIALS

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