Click here to Skip to main content
15,502,616 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: singly linked list Pin
Member 1306030218-Jul-17 22:45
Member 1306030218-Jul-17 22:45 
QuestionStuck with one program. Pin
B.Sudhir25-Jun-17 17:58
B.Sudhir25-Jun-17 17:58 
AnswerRe: Stuck with one program. Pin
Jochen Arndt25-Jun-17 22:40
professionalJochen Arndt25-Jun-17 22:40 
GeneralRe: Stuck with one program. Pin
B.Sudhir25-Jun-17 23:14
B.Sudhir25-Jun-17 23:14 
GeneralRe: Stuck with one program. Pin
Member 1496952719-Oct-20 8:29
Member 1496952719-Oct-20 8:29 
AnswerRe: Stuck with one program. Pin
Artur Linov IT25-Jul-17 7:43
Artur Linov IT25-Jul-17 7:43 
AnswerRe: Stuck with one program. Pin
Member 1496952719-Oct-20 8:04
Member 1496952719-Oct-20 8:04 
Questionprinting the customized data through printer in vc++ 6.0 dialog based. Pin
Member 1322408614-Jun-17 20:42
Member 1322408614-Jun-17 20: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 23:50
mveRichard MacCutchan14-Jun-17 23:50 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 0:20
rahul199515-Jun-17 0:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 2:04
mveRichard MacCutchan15-Jun-17 2:04 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 3:27
rahul199515-Jun-17 3:27 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 3:57
mveRichard MacCutchan15-Jun-17 3:57 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 4:06
mveRichard MacCutchan15-Jun-17 4:06 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 7:15
mveRichard MacCutchan15-Jun-17 7:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 21:15
rahul199515-Jun-17 21:15 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 22:26
mveRichard MacCutchan15-Jun-17 22:26 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 22:46
rahul199515-Jun-17 22:46 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan15-Jun-17 22:53
mveRichard MacCutchan15-Jun-17 22:53 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199516-Jun-17 1:09
rahul199516-Jun-17 1:09 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan16-Jun-17 3:45
mveRichard MacCutchan16-Jun-17 3:45 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199518-Jun-17 22:20
rahul199518-Jun-17 22:20 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
Richard MacCutchan18-Jun-17 23:44
mveRichard MacCutchan18-Jun-17 23:44 
GeneralRe: printing the customized data through printer in vc++ 6.0 dialog based. Pin
rahul199515-Jun-17 21:16
rahul199515-Jun-17 21:16 
Questioncreate c++ dll gui and call it on c# Pin
Member 1313968619-Apr-17 22:15
Member 1313968619-Apr-17 22: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.