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

C / C++ / MFC

 
GeneralRe: Cell change event in Excel Pin
NarVish15-Oct-09 2:43
NarVish15-Oct-09 2:43 
GeneralRe: Cell change event in Excel Pin
NarVish15-Oct-09 19:29
NarVish15-Oct-09 19:29 
GeneralRe: Cell change event in Excel Pin
NarVish18-Oct-09 22:13
NarVish18-Oct-09 22:13 
GeneralRe: Cell change event in Excel Pin
Stuart Dootson19-Oct-09 0:25
professionalStuart Dootson19-Oct-09 0:25 
GeneralRe: Cell change event in Excel Pin
NarVish19-Oct-09 0:54
NarVish19-Oct-09 0:54 
GeneralRe: Cell change event in Excel Pin
Stuart Dootson19-Oct-09 1:09
professionalStuart Dootson19-Oct-09 1:09 
Questioninterfacing google earth with c++/MFC app Pin
brian scott21-Sep-09 0:20
brian scott21-Sep-09 0:20 
QuestionWriting unicode to file Pin
yeah100021-Sep-09 0:12
yeah100021-Sep-09 0:12 
Hi, i have some data in a buffer that i need to write to a file:

writing:
for(unsigned int i = 4; i<(nReceivedBytes-2); i++)
{
//_tprintf(_T("%c"), DataBuf.buf[i]);
myfile.open ("file.doc", ios::out | ios::app);
myfile<<(DataBuf.buf[i]);
myfile.close();
}

The data is in unicode (2 bytes), the first four bytes show the length of the data package and the last two are zero. The file wont open with openoffice and when i open it with notepad++ it displays some characters but most of them are NUL. What could be the problem?

Thank you
AnswerRe: Writing unicode to file Pin
Nuri Ismail21-Sep-09 0:19
Nuri Ismail21-Sep-09 0:19 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 0:42
yeah100021-Sep-09 0:42 
AnswerRe: Writing unicode to file Pin
Naveen21-Sep-09 1:12
Naveen21-Sep-09 1:12 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 1:56
yeah100021-Sep-09 1:56 
GeneralRe: Writing unicode to file Pin
Naveen21-Sep-09 2:27
Naveen21-Sep-09 2:27 
AnswerRe: Writing unicode to file Pin
David Crow21-Sep-09 2:15
David Crow21-Sep-09 2:15 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 2:30
yeah100021-Sep-09 2:30 
GeneralRe: Writing unicode to file Pin
David Crow21-Sep-09 2:35
David Crow21-Sep-09 2:35 
GeneralRe: Writing unicode to file Pin
yeah100021-Sep-09 2:43
yeah100021-Sep-09 2:43 
GeneralRe: Writing unicode to file Pin
David Crow21-Sep-09 3:20
David Crow21-Sep-09 3:20 
QuestionCreate shortcut Pin
gdctld20-Sep-09 23:46
gdctld20-Sep-09 23:46 
AnswerRe: Create shortcut Pin
CPallini21-Sep-09 0:11
mveCPallini21-Sep-09 0:11 
AnswerRe: Create shortcut Pin
Nuri Ismail21-Sep-09 0:11
Nuri Ismail21-Sep-09 0:11 
Questionwindows service Pin
jinjiashan20-Sep-09 23:40
jinjiashan20-Sep-09 23:40 
AnswerRe: windows service Pin
Naveen21-Sep-09 0:10
Naveen21-Sep-09 0:10 
AnswerRe: windows service Pin
kilt21-Sep-09 0:34
kilt21-Sep-09 0:34 
Questionvirtual drive mount APIs? Pin
Peter Weyzen20-Sep-09 21:52
Peter Weyzen20-Sep-09 21:52 

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.