Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: remove system default icon from message box Pin
Cedric Moonen23-Jul-08 21:26
Cedric Moonen23-Jul-08 21:26 
Questionrunas Pin
pooja_friends23-Jul-08 20:51
pooja_friends23-Jul-08 20:51 
AnswerRe: runas Pin
Naveen23-Jul-08 21:07
Naveen23-Jul-08 21:07 
GeneralRe: runas Pin
pooja_friends24-Jul-08 0:15
pooja_friends24-Jul-08 0:15 
GeneralRe: runas Pin
Graham Bradshaw24-Jul-08 2:46
Graham Bradshaw24-Jul-08 2:46 
GeneralRe: runas Pin
pooja_friends24-Jul-08 3:21
pooja_friends24-Jul-08 3:21 
GeneralRe: runas Pin
Graham Bradshaw24-Jul-08 3:32
Graham Bradshaw24-Jul-08 3:32 
QuestionPrinting Problem for USB Pin
S_Murali23-Jul-08 20:42
S_Murali23-Jul-08 20:42 
Hi,

I am trying to write to a 24 col printer which has a centronics connector i.e., parallel printer connector and if I write to the LPT1 using following code it works fine.
hLPT = CreateFile("LPT1",GENERIC_WRITE,	0, 
0, CREATE_ALWAYS, FILE_FLAG_NO_BUFFERING, 0);

if(hLPT == INVALID_HANDLE_VALUE)
{
   AfxMessageBox("Cannot open port");
   return 0 ;
}
WriteFile(hLPT,str,size,&lLen,NULL);
			
ch = 0x0F;
WriteFile(hLPT,&ch,1,&lLen,NULL);	
	
CloseHandle(hLPT);


But as I am using USB to Parallel convertor I have used "USB001" in place of LPT1 But it is not printing. Is there any solution for this.

Thankx

Murali. S
AnswerRe: Printing Problem for USB Pin
CPallini23-Jul-08 23:15
mveCPallini23-Jul-08 23:15 
Questionhow to compile projects ? Pin
staticv23-Jul-08 20:41
staticv23-Jul-08 20:41 
AnswerRe: how to compile projects ? Pin
Cedric Moonen23-Jul-08 20:59
Cedric Moonen23-Jul-08 20:59 
GeneralRe: how to compile projects ? [modified] Pin
staticv23-Jul-08 23:25
staticv23-Jul-08 23:25 
GeneralRe: how to compile projects ? Pin
staticv24-Jul-08 5:50
staticv24-Jul-08 5:50 
GeneralRe: how to compile projects ? Pin
Mark Salsbery24-Jul-08 6:08
Mark Salsbery24-Jul-08 6:08 
GeneralRe: how to compile projects ? Pin
staticv24-Jul-08 6:09
staticv24-Jul-08 6:09 
GeneralRe: how to compile projects ? Pin
Mark Salsbery24-Jul-08 6:14
Mark Salsbery24-Jul-08 6:14 
GeneralRe: how to compile projects ? Pin
Cedric Moonen24-Jul-08 7:37
Cedric Moonen24-Jul-08 7:37 
QuestionInstant Thread End Pin
john563223-Jul-08 20:02
john563223-Jul-08 20:02 
AnswerRe: Instant Thread End Pin
sudhir_Kumar23-Jul-08 20:14
sudhir_Kumar23-Jul-08 20:14 
GeneralRe: Instant Thread End Pin
john563223-Jul-08 20:19
john563223-Jul-08 20:19 
GeneralRe: Instant Thread End Pin
ThatsAlok23-Jul-08 20:42
ThatsAlok23-Jul-08 20:42 
AnswerRe: Instant Thread End Pin
sudhir_Kumar23-Jul-08 20:46
sudhir_Kumar23-Jul-08 20:46 
GeneralRe: Instant Thread End Pin
ThatsAlok24-Jul-08 0:26
ThatsAlok24-Jul-08 0:26 
QuestionFundamental question in C++ Pin
Yajnesh Narayan Behera23-Jul-08 19:19
Yajnesh Narayan Behera23-Jul-08 19:19 
AnswerRe: Fundamental question in C++ Pin
rp_suman23-Jul-08 19:29
rp_suman23-Jul-08 19:29 

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.