Click here to Skip to main content
15,909,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcustom thumbnails for windows explorer Pin
bpChristoph30-Jan-04 4:05
bpChristoph30-Jan-04 4:05 
QuestionWhat is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:14
vmaltsev30-Jan-04 3:14 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Joel Lucsy30-Jan-04 3:23
Joel Lucsy30-Jan-04 3:23 
GeneralRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:53
vmaltsev30-Jan-04 3:53 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Mike Dimmick30-Jan-04 4:56
Mike Dimmick30-Jan-04 4:56 
GeneralRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 5:10
vmaltsev30-Jan-04 5:10 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Mukkie30-Jan-04 23:49
Mukkie30-Jan-04 23:49 
GeneralPASSTHROUGH printing using Escape Pin
Jimmy M Joy30-Jan-04 3:10
Jimmy M Joy30-Jan-04 3:10 
//......... struct for passing info to Escape........
struct Buff
{
DWORD BufLength;
char str[256];
};
//..............This is the code snippet................

char* outPut=(char*)malloc(sizeof(char)*256);
CString sControlCode;

CDC cdc;
cdc.CreateDC(NULL, m_cmbPrinters, NULL, NULL);

DOCINFO di;
::ZeroMemory(&di, sizeof(DOCINFO));
di.cbSize = sizeof(DOCINFO);
di.lpszDocName = "My Doc";

cdc.StartDoc(&di);
cdc.StartPage();
sControlCode.Format("%x%x",27,'E');
cdc.TextOut(12,34,"Hello Test Out here .... ");

Buff b;
int index=0;
char *p=sControlCode.GetBuffer(256);;

while(*p!='\0')
{
b.str[index++]=*p;
p++;
}

b.str[index++]='\0';

b.BufLength = sControlCode.GetLength();
int s=PASSTHROUGH;
if(cdc.Escape( QUERYESCSUPPORT, sizeof(int) , (const char*)&s , strlen(outPut) , outPut ))
{
cdc.Escape( PASSTHROUGH, 0 , (LPCSTR) &b , strlen(outPut) , outPut );
}
cdc.TextOut( 0, 150, "PASSTHROUGH Escape Function" );

cdc.EndPage();
cdc.EndDoc();
cdc.DeleteDC();

//..................
The printer code "ESC E" for the Epson LX 1050+ enables emphasized printing.
When i use the WritePrinter Api i pass the printer code as '\x1b\x45' and it works fine.The next line gets printed in bold.The WritePrinter Api needs handle to printer device but i need to do the printing through the device context.So the only way to pass printer code is via Escape.But when i pass the string via "Escape" the printer doesn't see it as a command,it just sees it as some non-printable character.So,how do i give printer commands via escape.Please,can someone help me out?
GeneralRe: PASSTHROUGH printing using Escape Pin
basementman30-Jan-04 9:56
basementman30-Jan-04 9:56 
GeneralRe: PASSTHROUGH printing using Escape Pin
Jimmy M Joy30-Jan-04 17:29
Jimmy M Joy30-Jan-04 17:29 
GeneralRe: PASSTHROUGH printing using Escape Pin
basementman2-Feb-04 4:13
basementman2-Feb-04 4:13 
Generaltemplate class friend of another template class Pin
Jerome Conus30-Jan-04 2:36
Jerome Conus30-Jan-04 2:36 
GeneralRe: template class friend of another template class Pin
toxcct30-Jan-04 3:11
toxcct30-Jan-04 3:11 
GeneralRight click menu and sending messages Pin
lobanovski30-Jan-04 2:09
lobanovski30-Jan-04 2:09 
GeneralRe: Right click menu and sending messages Pin
Michael P Butler30-Jan-04 3:39
Michael P Butler30-Jan-04 3:39 
Generaltemplate magic - generic callbacks + return values Pin
peterchen30-Jan-04 0:16
peterchen30-Jan-04 0:16 
GeneralRe: template magic - generic callbacks + return values Pin
Ryan Binns30-Jan-04 2:23
Ryan Binns30-Jan-04 2:23 
GeneralRe: template magic - generic callbacks + return values Pin
peterchen30-Jan-04 3:00
peterchen30-Jan-04 3:00 
GeneralCommunicating with Proxy Pin
sinuommen29-Jan-04 22:32
sinuommen29-Jan-04 22:32 
GeneralRe: Communicating with Proxy Pin
Prakash Nadar29-Jan-04 23:11
Prakash Nadar29-Jan-04 23:11 
Generala RSS reader Pin
Jerome Conus29-Jan-04 20:46
Jerome Conus29-Jan-04 20:46 
GeneralRe: a RSS reader Pin
Taka Muraoka29-Jan-04 21:43
Taka Muraoka29-Jan-04 21:43 
QuestionURGENT : Black Image??? Pin
chio110229-Jan-04 20:16
chio110229-Jan-04 20:16 
Generali want to get the handle of Dialog , that i created after clicking on a button Pin
Anonymous29-Jan-04 20:10
Anonymous29-Jan-04 20:10 
GeneralRe: i want to get the handle of Dialog , that i created after clicking on a button Pin
SJolly29-Jan-04 22:03
SJolly29-Jan-04 22:03 

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.