Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Some help please Pin
Maximilien13-Dec-04 6:09
Maximilien13-Dec-04 6:09 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 6:12
Tom Wright13-Dec-04 6:12 
GeneralRe: Some help please Pin
PJ Arends13-Dec-04 7:00
professionalPJ Arends13-Dec-04 7:00 
GeneralRe: Some help please Pin
Tom Wright13-Dec-04 9:36
Tom Wright13-Dec-04 9:36 
GeneralRe: Some help please Pin
toxcct13-Dec-04 7:50
toxcct13-Dec-04 7:50 
GeneralCSpinButtonCtrl object Pin
poornimac8013-Dec-04 5:05
poornimac8013-Dec-04 5:05 
Generalhelp on timeSetEvent for periodic timer Pin
bkhn4113-Dec-04 4:46
bkhn4113-Dec-04 4:46 
GeneralSATO printer programming Pin
Blubbo13-Dec-04 4:40
Blubbo13-Dec-04 4:40 
Has anyone made any source code for SATO printer? I'm having trouble setting up the code for printing the label with XP version.

my code shown below: (was made in Borland Builder but its in c++ code though.)

void __fastcall TLabel_Test::btnPrintClick(TObject *Sender)
{

DWORD numsent;
OVERLAPPED overlapped;
char LabelString[500];
char *Port = "LPT2";
strcpy(LabelString, "A");
strcat(LabelString, "V25H380OB");
strcat(LabelString, "20041201152631");
strcat(LabelString, "V25H750XU");
strcat(LabelString, "Mgr: 2130");
strcat(LabelString, "V40H750XU");
strcat(LabelString, "DLL: 1125");
strcat(LabelString, "V80H250XU");
strcat(LabelString, "Print Count > 25000");
strcat(LabelString, "V105H250XU");
strcat(LabelString, "Print Count > 25000 *");
strcat(LabelString, "V130H250XU");
strcat(LabelString, "Print Count > 25000");
strcat(LabelString, "V155H250XU");
strcat(LabelString, "Print Count > 25000");
strcat(LabelString, "V180H250XU");
strcat(LabelString, "Print Count > 25000 *");
strcat(LabelString, "V205H250XU");
strcat(LabelString, "Print Count > 25000");
strcat(LabelString, "V230H250XU");
strcat(LabelString, "Print Count > 25000 *");
strcat(LabelString, "Q1Z");
Retry:
HANDLE hCom =
CreateFile(Port,GENERIC_READ|GENERIC_WRITE,NULL,NULL,OPEN_EXISTING,FILE_FLAG_OVERLAPPED,NULL);
if(hCom == INVALID_HANDLE_VALUE)
{
edtStatus->Text = "Error. Printer Offline";
return;
}
WriteFile(hCom, LabelString, strlen(LabelString), &numsent, &overlapped);
WaitForSingleObject(overlapped.hEvent, 1000);
GetOverlappedResult(hCom, &overlapped, &numsent, FALSE);
CloseHandle(hCom);
if(numsent < strlen(LabelString))
{
edtStatus->Text = "Error. Printer Offline";
return;
}
}
GeneralPainting text problem Pin
__makaveli__13-Dec-04 4:30
__makaveli__13-Dec-04 4:30 
GeneralHelppp cant figure this out Pin
James198513-Dec-04 3:24
James198513-Dec-04 3:24 
GeneralRe: Helppp cant figure this out Pin
jmkhael13-Dec-04 3:53
jmkhael13-Dec-04 3:53 
GeneralRe: Helppp cant figure this out Pin
toxcct13-Dec-04 7:56
toxcct13-Dec-04 7:56 
QuestionHow to pop system menu in an owner-draw dialog Pin
max_xiayi13-Dec-04 3:01
max_xiayi13-Dec-04 3:01 
GeneralDCOM Question Pin
Anonymous13-Dec-04 3:00
Anonymous13-Dec-04 3:00 
Questionhow to convert string to binary Pin
Abhi Lahare13-Dec-04 1:45
Abhi Lahare13-Dec-04 1:45 
AnswerRe: how to convert string to binary Pin
valikac13-Dec-04 4:57
valikac13-Dec-04 4:57 
Generaltooltips for controls inside groupbox Pin
V.13-Dec-04 0:49
professionalV.13-Dec-04 0:49 
GeneralRe: tooltips for controls inside groupbox Pin
PJ Arends13-Dec-04 7:11
professionalPJ Arends13-Dec-04 7:11 
GeneralRe: tooltips for controls inside groupbox Pin
V.13-Dec-04 7:24
professionalV.13-Dec-04 7:24 
GeneralRe: tooltips for controls inside groupbox Pin
PJ Arends13-Dec-04 7:50
professionalPJ Arends13-Dec-04 7:50 
GeneralRe: tooltips for controls inside groupbox Pin
V.13-Dec-04 8:58
professionalV.13-Dec-04 8:58 
GeneralRe: tooltips for controls inside groupbox Pin
toxcct13-Dec-04 8:02
toxcct13-Dec-04 8:02 
GeneralRe: tooltips for controls inside groupbox Pin
V.13-Dec-04 8:55
professionalV.13-Dec-04 8:55 
QuestionCool tools? Pin
ManOfTheYear13-Dec-04 0:37
ManOfTheYear13-Dec-04 0:37 
AnswerRe: Cool tools? Pin
ThatsAlok13-Dec-04 1:04
ThatsAlok13-Dec-04 1:04 

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.