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

Managed C++/CLI

 
AnswerRe: Is every C# feature available in C++/Managed ? Pin
John Schroedl28-Nov-17 2:03
professionalJohn Schroedl28-Nov-17 2:03 
Questionc++ Pin
Member 1340521911-Sep-17 21:51
Member 1340521911-Sep-17 21:51 
AnswerRe: c++ Pin
Jochen Arndt11-Sep-17 22:41
professionalJochen Arndt11-Sep-17 22:41 
QuestionGet USB drive letter Pin
Member 101933363-Aug-17 0:22
Member 101933363-Aug-17 0:22 
SuggestionRe: Get USB drive letter Pin
Jochen Arndt3-Aug-17 1:10
professionalJochen Arndt3-Aug-17 1:10 
GeneralRe: Get USB drive letter Pin
Member 101933363-Aug-17 2:31
Member 101933363-Aug-17 2:31 
GeneralRe: Get USB drive letter Pin
Jochen Arndt3-Aug-17 2:34
professionalJochen Arndt3-Aug-17 2:34 
GeneralRe: Get USB drive letter Pin
Member 101933363-Aug-17 2:32
Member 101933363-Aug-17 2:32 
GeneralRe: Get USB drive letter Pin
Richard MacCutchan3-Aug-17 2:38
mveRichard MacCutchan3-Aug-17 2:38 
GeneralRe: Get USB drive letter Pin
Member 101933363-Aug-17 2:43
Member 101933363-Aug-17 2:43 
GeneralRe: Get USB drive letter Pin
Jochen Arndt3-Aug-17 2:43
professionalJochen Arndt3-Aug-17 2:43 
Questionsingly linked list Pin
Member 1306030217-Jul-17 23:27
Member 1306030217-Jul-17 23:27 
AnswerRe: singly linked list Pin
Richard MacCutchan18-Jul-17 2:10
mveRichard MacCutchan18-Jul-17 2:10 
GeneralRe: singly linked list Pin
Member 1306030218-Jul-17 15:14
Member 1306030218-Jul-17 15:14 
GeneralRe: singly linked list Pin
Richard MacCutchan18-Jul-17 20:43
mveRichard MacCutchan18-Jul-17 20:43 
GeneralRe: singly linked list Pin
Member 1306030218-Jul-17 21:13
Member 1306030218-Jul-17 21:13 
GeneralRe: singly linked list Pin
Richard MacCutchan18-Jul-17 21:41
mveRichard MacCutchan18-Jul-17 21:41 
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.

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.