Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to write a new line each time ? Pin
mrby12315-Mar-06 9:30
mrby12315-Mar-06 9:30 
AnswerRe: how to write a new line each time ? Pin
Christian Graus15-Mar-06 9:39
protectorChristian Graus15-Mar-06 9:39 
GeneralRe: how to write a new line each time ? Pin
mrby12315-Mar-06 9:45
mrby12315-Mar-06 9:45 
AnswerRe: how to write a new line each time ? Pin
Stephen Hewitt15-Mar-06 13:25
Stephen Hewitt15-Mar-06 13:25 
GeneralRe: how to write a new line each time ? Pin
mrby12315-Mar-06 16:41
mrby12315-Mar-06 16:41 
QuestionPalmOS3.5 sdk Pin
GreenLantern15-Mar-06 9:16
GreenLantern15-Mar-06 9:16 
AnswerRe: PalmOS3.5 sdk Pin
El Corazon15-Mar-06 10:38
El Corazon15-Mar-06 10:38 
QuestionCRecordset::GetFieldValue + UNICODE = problem Pin
leandrobecker15-Mar-06 8:56
leandrobecker15-Mar-06 8:56 
Hi
When using GetFieldValue to get a CString value in UNICODE the CString size is twice the length of the string because the CRecordset uses SqlGetData odbc api that returns the number of bytes copied to buffer and not the number of WCHARs. So when CRecordset issue a CString::ReleaseBuffer(SqlGetDataLen); the CString becomes with twice the size of the real data. Making use of CString += results in bad strings ...

PS.: This problem exists in MFC 7.1 and 8.0

My way to resolve this is calling CString::ReleaseBuffer(-1); again after call GetFieldValue.

There is a Microsoft fix for that ?
Questionto interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:09
mrby12315-Mar-06 7:09 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 7:16
David Crow15-Mar-06 7:16 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:23
mrby12315-Mar-06 7:23 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 7:36
David Crow15-Mar-06 7:36 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 7:46
mrby12315-Mar-06 7:46 
GeneralRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 8:12
David Crow15-Mar-06 8:12 
GeneralRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 8:18
mrby12315-Mar-06 8:18 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow15-Mar-06 8:34
David Crow15-Mar-06 8:34 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12315-Mar-06 8:40
mrby12315-Mar-06 8:40 
GeneralRe: to interagate each word in a line of stringstream Pin
David Crow27-Mar-06 9:20
David Crow27-Mar-06 9:20 
GeneralRe: to interagate each word in a line of stringstream Pin
mrby12327-Mar-06 9:53
mrby12327-Mar-06 9:53 
QuestionRe: to interagate each word in a line of stringstream Pin
David Crow27-Mar-06 10:14
David Crow27-Mar-06 10:14 
AnswerRe: to interagate each word in a line of stringstream Pin
mrby12327-Mar-06 10:22
mrby12327-Mar-06 10:22 
QuestionCannot "build" project.clw over "network"?? Pin
Vaclav15-Mar-06 6:45
Vaclav15-Mar-06 6:45 
QuestionRe: Cannot "build" project.clw over "network"?? Pin
David Crow15-Mar-06 8:35
David Crow15-Mar-06 8:35 
Questionmax characters of an array of char Pin
Trankil15-Mar-06 6:04
Trankil15-Mar-06 6:04 
AnswerRe: max characters of an array of char Pin
David Crow15-Mar-06 6:10
David Crow15-Mar-06 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.