Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionXML to binary format Pin
mutpan8-Nov-11 19:00
mutpan8-Nov-11 19:00 
AnswerRe: XML to binary format Pin
Richard MacCutchan8-Nov-11 21:47
mveRichard MacCutchan8-Nov-11 21:47 
GeneralRe: XML to binary format Pin
mutpan8-Nov-11 21:54
mutpan8-Nov-11 21:54 
GeneralRe: XML to binary format Pin
Richard MacCutchan8-Nov-11 22:43
mveRichard MacCutchan8-Nov-11 22:43 
AnswerRe: XML to binary format Pin
Orjan Westin9-Nov-11 5:49
professionalOrjan Westin9-Nov-11 5:49 
AnswerRe: XML to binary format Pin
jschell9-Nov-11 11:05
jschell9-Nov-11 11:05 
QuestionText drawing in embedded system Pin
A_Fa8-Nov-11 4:10
A_Fa8-Nov-11 4:10 
AnswerRe: Text drawing in embedded system Pin
Orjan Westin9-Nov-11 6:16
professionalOrjan Westin9-Nov-11 6:16 
You'll have to write your own routines for drawing text.

The way this was done back in the day was to create a fixed-size font (usually consisting of 8x8 monochrome pixels, so each character would take 8 bytes to describe), and a simple look-up algorithm (in this case something like "base address of font + character code * 8).

If you have to work pixel by pixel, I'd start with writing a routine to draw a row of 8 pixels, and use that to draw the whole character.

There are some classic old fonts to look at here: http://damieng.com/blog/2011/02/20/typography-in-8-bits-system-fonts[^]

You'd have to convert them to your own format, but that's reasonably trivial. If you take the first (PET), resize it so that there's one real pixel per used pixel, and save the image as a monochrome (2-bit) bitmap, you can read it out from there.
GeneralRe: Text drawing in embedded system Pin
A_Fa9-Nov-11 19:22
A_Fa9-Nov-11 19:22 
QuestionCListCtrl::InsertItem(...) - CImageList Pin
_Flaviu8-Nov-11 3:28
_Flaviu8-Nov-11 3:28 
QuestionRe: CListCtrl::InsertItem(...) - CImageList Pin
David Crow8-Nov-11 4:01
David Crow8-Nov-11 4:01 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
_Flaviu8-Nov-11 19:42
_Flaviu8-Nov-11 19:42 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
Roger Allen9-Nov-11 1:36
Roger Allen9-Nov-11 1:36 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
Roger Allen9-Nov-11 1:38
Roger Allen9-Nov-11 1:38 
GeneralRe: CListCtrl::InsertItem(...) - CImageList Pin
_Flaviu9-Nov-11 6:16
_Flaviu9-Nov-11 6:16 
QuestionAlways on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 1:42
professionalHadi Dayvary8-Nov-11 1:42 
QuestionRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 2:59
David Crow8-Nov-11 2:59 
AnswerRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 4:05
professionalHadi Dayvary8-Nov-11 4:05 
QuestionRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 4:40
David Crow8-Nov-11 4:40 
AnswerRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 7:03
professionalHadi Dayvary8-Nov-11 7:03 
GeneralRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 8:43
David Crow8-Nov-11 8:43 
GeneralRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 19:40
professionalHadi Dayvary8-Nov-11 19:40 
AnswerRe: Always on top (modeless) dialog box Pin
basementman8-Nov-11 4:37
basementman8-Nov-11 4:37 
GeneralRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 7:06
professionalHadi Dayvary8-Nov-11 7:06 
QuestionCalling DLL methods related problem Pin
Member 83440907-Nov-11 19:31
Member 83440907-Nov-11 19:31 

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.