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

C / C++ / MFC

 
QuestionBlinking cursor Pin
susanne17-Sep-09 1:58
susanne17-Sep-09 1:58 
AnswerRe: Blinking cursor Pin
Cedric Moonen7-Sep-09 3:18
Cedric Moonen7-Sep-09 3:18 
GeneralRe: Blinking cursor Pin
susanne17-Sep-09 3:34
susanne17-Sep-09 3:34 
GeneralRe: Blinking cursor Pin
Iain Clarke, Warrior Programmer7-Sep-09 4:32
Iain Clarke, Warrior Programmer7-Sep-09 4:32 
GeneralRe: Blinking cursor Pin
susanne18-Sep-09 23:38
susanne18-Sep-09 23:38 
Questionbyte alignment issue? Writing struct to file in binary mode. [modified] Pin
Sauce!7-Sep-09 1:57
Sauce!7-Sep-09 1:57 
AnswerRe: byte alignment issue? Writing struct to file in binary mode. Pin
CPallini7-Sep-09 2:24
mveCPallini7-Sep-09 2:24 
AnswerRe: byte alignment issue? Writing struct to file in binary mode. Pin
Richard MacCutchan7-Sep-09 2:39
mveRichard MacCutchan7-Sep-09 2:39 
First you create a myStruct struct called temp:
Sauce! wrote:
temp = {{'A', 'B'}, 0x46, 0x0, 0x0, 0x36};


Then you write to your file from header using sizeof(headerBMP)
Sauce! wrote:
file.write(reinterpret_cast<const char="" *="">(&header), sizeof(headerBMP));


This is not consistent. Where is header and what is its structure and size, and what is the size of headerBMP?

Also the characters 'A' and 'B' would appear to be Unicode hence being written as 4100 and 4200.
GeneralRe: byte alignment issue? Writing struct to file in binary mode. [modified] Pin
Sauce!7-Sep-09 3:50
Sauce!7-Sep-09 3:50 
GeneralRe: byte alignment issue? Writing struct to file in binary mode. Pin
Richard MacCutchan7-Sep-09 4:57
mveRichard MacCutchan7-Sep-09 4:57 
AnswerRe: byte alignment issue? Writing struct to file in binary mode. Pin
Luc Pattyn7-Sep-09 2:39
sitebuilderLuc Pattyn7-Sep-09 2:39 
GeneralRe: byte alignment issue? Writing struct to file in binary mode. [modified] Pin
Sauce!7-Sep-09 6:04
Sauce!7-Sep-09 6:04 
GeneralRe: byte alignment issue? Writing struct to file in binary mode. Pin
Luc Pattyn7-Sep-09 6:16
sitebuilderLuc Pattyn7-Sep-09 6:16 
GeneralRe: byte alignment issue? Writing struct to file in binary mode. Pin
Richard MacCutchan7-Sep-09 10:59
mveRichard MacCutchan7-Sep-09 10:59 
QuestionStrings in EXE Pin
choramale_vs7-Sep-09 1:45
choramale_vs7-Sep-09 1:45 
AnswerRe: Strings in EXE Pin
Richard MacCutchan7-Sep-09 1:52
mveRichard MacCutchan7-Sep-09 1:52 
GeneralRe: Strings in EXE Pin
choramale_vs7-Sep-09 2:26
choramale_vs7-Sep-09 2:26 
GeneralRe: Strings in EXE Pin
Richard MacCutchan7-Sep-09 2:30
mveRichard MacCutchan7-Sep-09 2:30 
GeneralRe: Strings in EXE Pin
choramale_vs7-Sep-09 2:51
choramale_vs7-Sep-09 2:51 
GeneralRe: Strings in EXE Pin
Richard MacCutchan7-Sep-09 4:21
mveRichard MacCutchan7-Sep-09 4:21 
AnswerRe: Strings in EXE Pin
CPallini7-Sep-09 1:55
mveCPallini7-Sep-09 1:55 
GeneralRe: Strings in EXE Pin
choramale_vs7-Sep-09 3:50
choramale_vs7-Sep-09 3:50 
GeneralRe: Strings in EXE Pin
Michael Schubert7-Sep-09 4:03
Michael Schubert7-Sep-09 4:03 
GeneralRe: Strings in EXE Pin
choramale_vs7-Sep-09 4:14
choramale_vs7-Sep-09 4:14 
GeneralRe: Strings in EXE Pin
Michael Schubert7-Sep-09 4:37
Michael Schubert7-Sep-09 4:37 

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.