Click here to Skip to main content
15,907,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRetreive Ip Address Pin
Abinash Mohanty28-Oct-09 19:28
Abinash Mohanty28-Oct-09 19:28 
AnswerRe: Retreive Ip Address Pin
Adam Roderick J28-Oct-09 19:30
Adam Roderick J28-Oct-09 19:30 
QuestionPrinting a txt file Pin
Benjamin Bruno28-Oct-09 19:24
Benjamin Bruno28-Oct-09 19:24 
AnswerRe: Printing a txt file Pin
«_Superman_»28-Oct-09 19:59
professional«_Superman_»28-Oct-09 19:59 
GeneralRe: Printing a txt file Pin
Benjamin Bruno29-Oct-09 2:35
Benjamin Bruno29-Oct-09 2:35 
AnswerRe: Printing a txt file Pin
David Crow29-Oct-09 3:19
David Crow29-Oct-09 3:19 
GeneralRe: Printing a txt file Pin
Benjamin Bruno29-Oct-09 18:26
Benjamin Bruno29-Oct-09 18:26 
GeneralRe: Printing a txt file Pin
dxlee29-Oct-09 3:59
dxlee29-Oct-09 3:59 
The steps:

1. StartDocPrinter
2. StartPagePrinter
3. WritePrinter
4. EndPagePrinter
5. repeat 2, 3, 4 for as many pages as necessary
6. EndDocPrinter

When you are trying to print a text file directly to a printer, there will be no format information such as font, color, etc sent to the printer. The printer will use its default font to print the text file in its natural text flow. The result is not pretty.
GeneralRe: Printing a txt file Pin
Benjamin Bruno29-Oct-09 18:29
Benjamin Bruno29-Oct-09 18:29 
GeneralRe: Printing a txt file Pin
dxlee30-Oct-09 4:57
dxlee30-Oct-09 4:57 
AnswerRe: Printing a txt file Pin
David Crow29-Oct-09 2:51
David Crow29-Oct-09 2:51 
GeneralRe: Printing a txt file Pin
Benjamin Bruno29-Oct-09 19:18
Benjamin Bruno29-Oct-09 19:18 
QuestionSpecial Significance of CSingleLock and CMultiLock ????? Pin
Hari_1628-Oct-09 19:16
Hari_1628-Oct-09 19:16 
Questionwrite problem in ios::in|ios::out|ios::app mode Pin
xbottle28-Oct-09 18:05
xbottle28-Oct-09 18:05 
AnswerRe: write problem in ios::in|ios::out|ios::app mode [modified] Pin
Randor 28-Oct-09 19:09
professional Randor 28-Oct-09 19:09 
GeneralRe: write problem in ios::in|ios::out|ios::app mode Pin
xbottle28-Oct-09 20:20
xbottle28-Oct-09 20:20 
GeneralRe: write problem in ios::in|ios::out|ios::app mode Pin
Randor 28-Oct-09 21:48
professional Randor 28-Oct-09 21:48 
GeneralRe: write problem in ios::in|ios::out|ios::app mode Pin
xbottle29-Oct-09 23:33
xbottle29-Oct-09 23:33 
GeneralRe: write problem in ios::in|ios::out|ios::app mode Pin
enhzflep28-Oct-09 21:53
enhzflep28-Oct-09 21:53 
AnswerRe: write problem in ios::in|ios::out|ios::app mode Pin
David Crow29-Oct-09 2:56
David Crow29-Oct-09 2:56 
QuestionRe: write problem in ios::in|ios::out|ios::app mode Pin
David Crow29-Oct-09 2:54
David Crow29-Oct-09 2:54 
Questionwhy optimization since program is trade-off between time and memory Pin
jianzhuhuai28-Oct-09 14:36
jianzhuhuai28-Oct-09 14:36 
AnswerRe: why optimization since program is trade-off between time and memory Pin
Rozis29-Oct-09 12:07
Rozis29-Oct-09 12:07 
GeneralRe: why optimization since program is trade-off between time and memory Pin
jianzhuhuai31-Oct-09 5:35
jianzhuhuai31-Oct-09 5:35 
Questionwhy add member function in classview does not work for overloaded function operator <() Pin
jianzhuhuai28-Oct-09 14:15
jianzhuhuai28-Oct-09 14:15 

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.