Click here to Skip to main content
15,916,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Message Pumps in MFC Pin
David Crow28-Oct-05 2:54
David Crow28-Oct-05 2:54 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:21
Eytukan28-Oct-05 4:21 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:23
Eytukan28-Oct-05 4:23 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 4:48
David Crow28-Oct-05 4:48 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 5:51
Eytukan28-Oct-05 5:51 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 6:16
David Crow28-Oct-05 6:16 
Questioncaret position from ms word Pin
sudeesh28-Oct-05 0:23
sudeesh28-Oct-05 0:23 
QuestionWritePrinter Code to Test Pin
AsimUmair28-Oct-05 0:13
AsimUmair28-Oct-05 0:13 
I have some problem with my printer.The code snippet written below is Writting the Text on the Printer.But i am unable to check this with my machine.Can anyone Paste that code & check whether the Text is printing or not.
Steps to Follow:
1) Create a new Dialog Based Application
2) On the OnOk function paste the below code .

Change the printer name as ur own.
--------------------------------------------------------------------
void OnOk()
{
HANDLE hPrinter;
DOC_INFO_1 DocInfo;

DocInfo.pDatatype = "RAW"; // datatype is Null (it can be EMF also)
DocInfo.pDocName = "Named Document"; // Name of the Dopcument
DocInfo.pOutputFile = NULL; // Output is to the printer

DWORD written; // For the number of bytes written to the printer
char cBuffer[20] = "MyTextBuffer\f";

OpenPrinter("Lexmark 2200 Series",&hPrinter,NULL);//you should change
// the name of the printer
StartDocPrinter(hPrinter,1,(LPBYTE)&DocInfo);
StartPagePrinter(hPrinter);

WritePrinter(hPrintercBuffer,sizeof(cBuffer),&written);

EndPagePrinter(hPrinter);
EndDocPrinter(hPrinter);
ClosePrinter(hPrinter);
}
QuestionUsing CDO in VC6 how to send email Pin
naeemnimi27-Oct-05 23:46
naeemnimi27-Oct-05 23:46 
AnswerRe: Using CDO in VC6 how to send email Pin
ThatsAlok28-Oct-05 0:09
ThatsAlok28-Oct-05 0:09 
GeneralRe: Using CDO in VC6 how to send email Pin
kakan28-Oct-05 0:39
professionalkakan28-Oct-05 0:39 
GeneralRe: Using CDO in VC6 how to send email Pin
David Crow28-Oct-05 3:10
David Crow28-Oct-05 3:10 
GeneralRe: Using CDO in VC6 how to send email Pin
ThatsAlok28-Oct-05 4:10
ThatsAlok28-Oct-05 4:10 
Questionhow to implementate a registration script Pin
T.J.27-Oct-05 22:52
T.J.27-Oct-05 22:52 
QuestionCapture lost when both mouse buttons are pressed and one released Pin
Dan Pidcock27-Oct-05 22:10
Dan Pidcock27-Oct-05 22:10 
QuestionSending email in VC++ 6.0 Pin
naeemnimi27-Oct-05 21:55
naeemnimi27-Oct-05 21:55 
AnswerRe: Sending email in VC++ 6.0 Pin
ThatsAlok27-Oct-05 22:16
ThatsAlok27-Oct-05 22:16 
GeneralRe: Sending email in VC++ 6.0 Pin
Intertherain28-Oct-05 2:30
Intertherain28-Oct-05 2:30 
GeneralRe: Sending email in VC++ 6.0 Pin
ThatsAlok30-Oct-05 19:15
ThatsAlok30-Oct-05 19:15 
AnswerRe: Sending email in VC++ 6.0 Pin
Mircea Puiu27-Oct-05 22:28
Mircea Puiu27-Oct-05 22:28 
Questionwhat does '\.\' mean in a path Pin
Monty227-Oct-05 21:52
Monty227-Oct-05 21:52 
AnswerRe: what does '\.\' mean in a path Pin
toxcct27-Oct-05 22:23
toxcct27-Oct-05 22:23 
QuestionUnder Win98 Pin
LiYS27-Oct-05 20:42
LiYS27-Oct-05 20:42 
AnswerRe: Under Win98 Pin
Steve Mayfield27-Oct-05 21:38
Steve Mayfield27-Oct-05 21:38 
AnswerRe: Under Win98 Pin
Parthiban28-Oct-05 1:56
Parthiban28-Oct-05 1:56 

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.