Click here to Skip to main content
15,887,952 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Font metric questions Pin
transoft24-Oct-09 10:22
transoft24-Oct-09 10:22 
GeneralRe: Font metric questions Pin
«_Superman_»24-Oct-09 10:26
professional«_Superman_»24-Oct-09 10:26 
AnswerRe: Font metric questions Pin
Richard MacCutchan24-Oct-09 22:54
mveRichard MacCutchan24-Oct-09 22:54 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 4:01
transoft25-Oct-09 4:01 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:03
mveRichard MacCutchan25-Oct-09 6:03 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 6:05
transoft25-Oct-09 6:05 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:19
mveRichard MacCutchan25-Oct-09 6:19 
Questionwrite CString Datatype to a DaoDatabase in UTF8 Format? Pin
A&Ms24-Oct-09 9:26
A&Ms24-Oct-09 9:26 
Hi Experts
I want to write some information which are saved in CString to a DaoDatabase in UTF8 Format?
So that another program will use them.
All my own efforts were in vain!

I use below code to convert the CString to ,char* Buffer in UTF8 but I don't know how to write them to DaoDatabase

CString myData;
long BufferSize = ::WideCharToMultiByte(CP_UTF8, 0, myData, -1, NULL, 0, NULL, NULL);
LPSTR Buffer = new CHAR[BufferSize];
BufferSize = ::WideCharToMultiByte(CP_UTF8, 0, myData, -1, Buffer, BufferSize, NULL, NULL);

.....

delete[] Buffer;

AnswerRe: write CString Datatype to a DaoDatabase in UTF8 Format? Pin
«_Superman_»24-Oct-09 9:47
professional«_Superman_»24-Oct-09 9:47 
QuestionCREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 7:07
rhenry8424-Oct-09 7:07 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
Nemanja Trifunovic24-Oct-09 7:39
Nemanja Trifunovic24-Oct-09 7:39 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
josda100024-Oct-09 7:44
josda100024-Oct-09 7:44 
GeneralRe: CREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 8:19
rhenry8424-Oct-09 8:19 
GeneralRe: CREATE AN EMPTY STRUCT? [modified] Pin
josda100024-Oct-09 9:10
josda100024-Oct-09 9:10 
GeneralRe: CREATE AN EMPTY STRUCT? Pin
Stuart Dootson24-Oct-09 9:40
professionalStuart Dootson24-Oct-09 9:40 
QuestionStupid bug in main function Pin
bubuzzz24-Oct-09 5:49
bubuzzz24-Oct-09 5:49 
QuestionRe: Stupid bug in main function Pin
Nuri Ismail24-Oct-09 5:57
Nuri Ismail24-Oct-09 5:57 
AnswerRe: Stupid bug in main function Pin
bubuzzz24-Oct-09 6:17
bubuzzz24-Oct-09 6:17 
JokeRe: Stupid bug in main function Pin
Nuri Ismail24-Oct-09 6:21
Nuri Ismail24-Oct-09 6:21 
QuestionOOPS Pin
ammu2324-Oct-09 5:10
ammu2324-Oct-09 5:10 
AnswerRe: OOPS Pin
Michael Schubert24-Oct-09 5:34
Michael Schubert24-Oct-09 5:34 
AnswerRe: OOPS Pin
Nuri Ismail24-Oct-09 5:37
Nuri Ismail24-Oct-09 5:37 
AnswerRe: OOPS Pin
«_Superman_»24-Oct-09 10:04
professional«_Superman_»24-Oct-09 10:04 
AnswerRe: OOPS Pin
CPallini24-Oct-09 10:30
mveCPallini24-Oct-09 10:30 
QuestionMoving mouse over the buttons. Pin
Nikz224-Oct-09 5:02
Nikz224-Oct-09 5:02 

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.