Click here to Skip to main content
16,019,768 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: singly linked list Pin
Member 1306030218-Jul-17 21:45
Member 1306030218-Jul-17 21:45 
QuestionStuck with one program. Pin
B.Sudhir25-Jun-17 16:58
B.Sudhir25-Jun-17 16:58 
AnswerRe: Stuck with one program. Pin
Jochen Arndt25-Jun-17 21:40
professionalJochen Arndt25-Jun-17 21:40 
GeneralRe: Stuck with one program. Pin
B.Sudhir25-Jun-17 22:14
B.Sudhir25-Jun-17 22:14 
GeneralRe: Stuck with one program. Pin
Member 1496952719-Oct-20 7:29
Member 1496952719-Oct-20 7:29 
AnswerRe: Stuck with one program. Pin
Artur Linov IT25-Jul-17 6:43
Artur Linov IT25-Jul-17 6:43 
AnswerRe: Stuck with one program. Pin
Member 1496952719-Oct-20 7:04
Member 1496952719-Oct-20 7:04 
Questionprinting the customized data through printer in vc++ 6.0 dialog based. Pin
Member 1322408614-Jun-17 19:42
Member 1322408614-Jun-17 19:42 
I am trying to print some data from my application.It is printing the data but the page is not coming out of the printer.Please help me on this.
<pre>HANDLE hPrinter;
DOC_INFO_1 DocInfo;
DWORD dwJob;
DWORD dwBytesWritten;

char *lpData="welcome to delopt";



char *szPrinterName="CUSTOM TG2460-H";
if( ! OpenPrinter( szPrinterName, &hPrinter, NULL ) )
return ;

DocInfo.pDocName = "My Document";
DocInfo.pOutputFile = NULL;
DocInfo.pDatatype = "RAW";

if( (dwJob = StartDocPrinter( hPrinter, 1, (unsigned char*)(LPSTR)&DocInfo )) == 0 )
{
ClosePrinter( hPrinter );
return;
}

if( ! StartPagePrinter( hPrinter ) )
{
EndDocPrinter( hPrinter );
ClosePrinter( hPrinter );
return;
}

int dwCount=19;
if( !WritePrinter( hPrinter, lpData, dwCount, &dwBytesWritten ) )
{
EndPagePrinter( hPrinter );
EndDocPrinter( hPrinter );
ClosePrinter( hPrinter );
return;
}

.

if( ! EndPagePrinter( hPrinter ) )
{
EndDocPrinter( hPrinter );
ClosePrinter( hPrinter );
return;

}

if( ! EndDocPrinter( hPrinter ) )
{
ClosePrinter( hPrinter );
return;
}



if( dwBytesWritten != dwCount )
return;
ClosePrinter( hPrinter );
return;</pre>

this is for dialog based application.
AnswerRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan14-Jun-17 22:50
mveRichard MacCutchan14-Jun-17 22:50 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199514-Jun-17 23:20
rahul199514-Jun-17 23:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 1:04
mveRichard MacCutchan15-Jun-17 1:04 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 2:27
rahul199515-Jun-17 2:27 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 2:57
mveRichard MacCutchan15-Jun-17 2:57 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 3:06
mveRichard MacCutchan15-Jun-17 3:06 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 6:15
mveRichard MacCutchan15-Jun-17 6:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 20:15
rahul199515-Jun-17 20:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 21:26
mveRichard MacCutchan15-Jun-17 21:26 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 21:46
rahul199515-Jun-17 21:46 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 21:53
mveRichard MacCutchan15-Jun-17 21:53 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199516-Jun-17 0:09
rahul199516-Jun-17 0:09 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan16-Jun-17 2:45
mveRichard MacCutchan16-Jun-17 2:45 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199518-Jun-17 21:20
rahul199518-Jun-17 21:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan18-Jun-17 22:44
mveRichard MacCutchan18-Jun-17 22:44 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 20:16
rahul199515-Jun-17 20:16 
Questioncreate c++ dll gui and call it on c# Pin
Member 1313968619-Apr-17 21:15
Member 1313968619-Apr-17 21: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.