[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

12/31/2008 at 03:45AM PST, ID: 24017605 | Points: 200
[x]
Attachment Details

problems Reading CSocketFile using CArchive in MFC Unicode

Asked by LTIndia in Windows MFC Programming, Web Servers

Tags: MFC, Unicode, CSocketFile

Hi All,

I want to read some data from a given socket.
Previously it was working fine with MBCS setting, but after i changed my project to UNICODE, the call to readstring doesnt returns anymore.
What i am missing?
Anything need to done specially for Unicode to work here?

Tarun
1:
2:
3:
4:
5:
6:
7:
8:
CSocketFile file(soc);       // soc is CSocket* type
CArchive arIn(&file, CArchive::load);
CArchive arOut(&file, CArchive::store);
CString strRequest;
TCHAR tcRequest[1024];
//Read incomming data line by line.
arIn.ReadString(strRequest);        // This call doesn't Returns now from here
//lptReq = arIn.ReadString(tcRequest, 1024); // Also this is not working
[+][-]01/01/09 03:56 PM, ID: 23276901

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/17/09 01:51 AM, ID: 23400135

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/07/09 11:56 AM, ID: 23579903

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/07/09 11:57 AM, ID: 23579904

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/07/09 05:57 PM, ID: 23581598

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/09 01:27 AM, ID: 23582780

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/15/09 11:31 PM, ID: 23647507

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/16/09 04:35 AM, ID: 23649137

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625