Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry question... Pin
Michael Dunn28-Sep-02 19:09
sitebuilderMichael Dunn28-Sep-02 19:09 
GeneralRe: Registry question... Pin
Abin28-Sep-02 21:51
Abin28-Sep-02 21:51 
GeneralRe: Registry question... Pin
Daniel Turini28-Sep-02 23:09
Daniel Turini28-Sep-02 23:09 
Questionwho can help me? Pin
whelk28-Sep-02 16:29
whelk28-Sep-02 16:29 
AnswerRe: who can help me? Pin
Mike Nordell28-Sep-02 19:21
Mike Nordell28-Sep-02 19:21 
Generalo,thanks a lot but...... Pin
whelk28-Sep-02 19:42
whelk28-Sep-02 19:42 
GeneralRe: o,thanks a lot but...... Pin
Mike Nordell28-Sep-02 20:30
Mike Nordell28-Sep-02 20:30 
GeneralRe: o,thanks a lot but...... Pin
whelk28-Sep-02 21:19
whelk28-Sep-02 21:19 
yeah,what you say is right!

1:i use the CreateFile() open the LPT1 then send the printer command
for example print bitmap

0x14 0x47
sometimes i will generate the send data:
0x81---black pixel
0x80---white pixel
0x80 0x04----continuse 4 white pixels
0x82---line end flag byte
0x84---data end flag byte


0x1c,0x47,0x95,0x00,----------------->command and the length
0x80,0x04,0x81,0x03,0x80,0x0a,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x80,0x05,0x81,0x03,0x80,0x09,0x81,0x01,0x82,
0x84

so send these data on printer by LPT1 ,the printer will print the bitmap

2: now my problem is that i want to built a function:

char * GenerateData(CString strPrintText);

these function can change the strPrintText to above data format;
the argument strPrintText is chinese character
the return is the data above

the key is that i dont know how to generate the strPrintText to the bitmap in
the function ,by the way ,i dont want to display the text,all i want to is to
generate the data .then get the bitmap data to generate the data format above.
that is all .i hope you can help me.thanks a lot.

-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
GeneralRe: o,thanks a lot but...... Pin
Mike Nordell28-Sep-02 21:58
Mike Nordell28-Sep-02 21:58 
GeneralRe: o,thanks a lot but...... Pin
whelk29-Sep-02 16:07
whelk29-Sep-02 16:07 
Question??Resuming a partial download?? Pin
Licensed2Code28-Sep-02 14:23
sussLicensed2Code28-Sep-02 14:23 
AnswerRe: ??Resuming a partial download?? Pin
Mike Nordell28-Sep-02 19:27
Mike Nordell28-Sep-02 19:27 
GeneralRe: ??Resuming a partial download?? Pin
licensed2kill29-Sep-02 7:41
licensed2kill29-Sep-02 7:41 
Generallow level code Pin
Kuniva28-Sep-02 14:03
Kuniva28-Sep-02 14:03 
GeneralRe: low level code Pin
Mike Nordell28-Sep-02 19:30
Mike Nordell28-Sep-02 19:30 
GeneralRe: low level code Pin
Stephane Rodriguez.28-Sep-02 21:19
Stephane Rodriguez.28-Sep-02 21:19 
GeneralRe: low level code Pin
Daniel Turini28-Sep-02 23:13
Daniel Turini28-Sep-02 23:13 
QuestionDoes this bit of code work? Pin
DarrollWalsh28-Sep-02 13:35
DarrollWalsh28-Sep-02 13:35 
AnswerRe: Does this bit of code work? Pin
Michael Dunn28-Sep-02 14:34
sitebuilderMichael Dunn28-Sep-02 14:34 
GeneralDelete *.ini sections Pin
Selevercin28-Sep-02 11:55
Selevercin28-Sep-02 11:55 
GeneralRe: Delete *.ini sections Pin
DarrollWalsh28-Sep-02 12:18
DarrollWalsh28-Sep-02 12:18 
GeneralRe: Delete *.ini sections Pin
Selevercin28-Sep-02 12:52
Selevercin28-Sep-02 12:52 
GeneralRe: Delete *.ini sections Pin
Abin28-Sep-02 22:00
Abin28-Sep-02 22:00 
GeneralRe: Delete *.ini sections Pin
Mike Nordell29-Sep-02 4:23
Mike Nordell29-Sep-02 4:23 
GeneralRe: Delete *.ini sections Pin
JT Anderson1-Oct-02 6:41
JT Anderson1-Oct-02 6:41 

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.