Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDump file reading via WinDbg Pin
Axter6-Dec-05 4:28
professionalAxter6-Dec-05 4:28 
QuestionCDateTimeCtrl Pin
JohnZed6-Dec-05 3:40
JohnZed6-Dec-05 3:40 
QuestionRe: CDateTimeCtrl Pin
David Crow6-Dec-05 3:56
David Crow6-Dec-05 3:56 
AnswerRe: CDateTimeCtrl Pin
JohnZed6-Dec-05 3:58
JohnZed6-Dec-05 3:58 
QuestionRe: CDateTimeCtrl Pin
David Crow7-Dec-05 9:47
David Crow7-Dec-05 9:47 
Questionregarding the focus on help button through arrow key Pin
simhadri6-Dec-05 3:02
simhadri6-Dec-05 3:02 
AnswerRe: regarding the focus on help button through arrow key Pin
David Crow6-Dec-05 3:57
David Crow6-Dec-05 3:57 
QuestionNeed to get Command line argument and add to this simple function Pin
andreas_sweden6-Dec-05 2:55
andreas_sweden6-Dec-05 2:55 
Hi there!

I'm quite new with C++, using other languages but now i needed to write an Printer USB routine in C++, and i need some help!

It's like this

BytesToWrite = sprintf( (char *) szBuffer, "\033F\r\033B 512 600 4 1 2 3 150 1 999999999\r\033I\r");

WriteFile( hDevice, szBuffer, BytesToWrite, &cbWritten, Null);

etc, etc, etc

I need to replace the 999999999 with the first command line argument (paramstr(1) Can someone help me with this!?

What this function does, is to send ESC commando codes to an Zebra Eltron printer.. Print barcode.. 999999999 is the barcode, but i need be able to call this little application from another application then with the barcode as command line argument.!

Best regards

AndreasConfused | :confused:


QuestionRe: Need to get Command line argument and add to this simple function Pin
David Crow6-Dec-05 3:59
David Crow6-Dec-05 3:59 
AnswerRe: Need to get Command line argument and add to this simple function Pin
andreas_sweden6-Dec-05 4:09
andreas_sweden6-Dec-05 4:09 
GeneralRe: Need to get Command line argument and add to this simple function Pin
David Crow6-Dec-05 4:11
David Crow6-Dec-05 4:11 
GeneralRe: Need to get Command line argument and add to this simple function Pin
andreas_sweden6-Dec-05 4:16
andreas_sweden6-Dec-05 4:16 
GeneralRe: Need to get Command line argument and add to this simple function Pin
David Crow6-Dec-05 4:43
David Crow6-Dec-05 4:43 
GeneralRe: Need to get Command line argument and add to this simple function Pin
andreas_sweden6-Dec-05 4:49
andreas_sweden6-Dec-05 4:49 
GeneralRe: Need to get Command line argument and add to this simple function Pin
David Crow6-Dec-05 4:57
David Crow6-Dec-05 4:57 
GeneralRe: Need to get Command line argument and add to this simple function Pin
andreas_sweden6-Dec-05 6:07
andreas_sweden6-Dec-05 6:07 
QuestionOverloading << operator? Pin
Cristoff6-Dec-05 2:03
Cristoff6-Dec-05 2:03 
AnswerRe: Overloading << operator? Pin
toxcct6-Dec-05 2:37
toxcct6-Dec-05 2:37 
GeneralRe: Overloading << operator? Pin
Cristoff6-Dec-05 2:53
Cristoff6-Dec-05 2:53 
GeneralRe: Overloading << operator? Pin
toxcct6-Dec-05 2:55
toxcct6-Dec-05 2:55 
GeneralRe: Overloading << operator? Pin
Cristoff6-Dec-05 6:08
Cristoff6-Dec-05 6:08 
AnswerRe: Overloading << operator? Pin
toxcct6-Dec-05 6:13
toxcct6-Dec-05 6:13 
GeneralRe: Overloading << operator? Pin
Cristoff6-Dec-05 11:16
Cristoff6-Dec-05 11:16 
GeneralRe: Overloading << operator? Pin
S. Senthil Kumar6-Dec-05 4:06
S. Senthil Kumar6-Dec-05 4:06 
Question[Message Deleted] Pin
Eytukan6-Dec-05 4:46
Eytukan6-Dec-05 4:46 

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.