Click here to Skip to main content
15,915,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SOCKADDR_IN structure port conversion Pin
Kuniva22-Nov-03 1:08
Kuniva22-Nov-03 1:08 
GeneralTrimLeft() question Pin
speedpacer21-Nov-03 9:44
speedpacer21-Nov-03 9:44 
GeneralRe: TrimLeft() question Pin
speedpacer21-Nov-03 10:07
speedpacer21-Nov-03 10:07 
GeneralRe: TrimLeft() question Pin
speedpacer21-Nov-03 11:00
speedpacer21-Nov-03 11:00 
GeneralRe: TrimLeft() question Pin
John R. Shaw21-Nov-03 11:24
John R. Shaw21-Nov-03 11:24 
GeneralRe: TrimLeft() question Pin
speedpacer21-Nov-03 12:21
speedpacer21-Nov-03 12:21 
GeneralRe: TrimLeft() question Pin
Mike Dimmick21-Nov-03 13:10
Mike Dimmick21-Nov-03 13:10 
GeneralPrinting and Bitmap Coding. Pin
krondorl21-Nov-03 8:50
krondorl21-Nov-03 8:50 
Greetings,

Please bare with me as I am rather new to Microsoft Visual C++ and haven't coded in C in many years.

I have searched for as many examples as I was able to find but nothing has helped me understand my needs at this point in time.

I have an application that has the following requirements:

NOTE: The coding in done in NON MFC C code using Microsoft Visual C++. (That was a requirement handed down to me.)

1. Read in a specially delimited file and display it's contents, one row per each delimited section. (This is done and works perfectly)
2. Form all those rows, pick one, a bunch of them, or none.
3. When the print button is clickes, take those choices (in the case of none, all the rows are printed) and print the information to a special Barcode Printer.

Now my problem is this.

Although I have found many examples of printing and can get data printed to our lazer printer, I am having problems getting it to line up exactly as I wish it to be. I am using the GDI TEXTOUT functionality to print.

Should I be using something different like creating a Bitmap and printing it that way? If so then I am in need of help on how to actually create a bitmap from scratch programatically.

I have searched and all the examples I was able to find only deals with loading and existing bitmap and massaging it in different ways to get different effects.

Also, I wish to be able to print to these printers using the windows drivers instead of specifically code for the printer.

Any help on this problem would be wonderfully greatful and please bare with me if I ask a few stupid questions along the way. I am finding it confusing at the moment and when the light clicks on, I might actually get somewhere. This is pretty much the last thing left to complete the project.

Tagni.
GeneralRe: Printing and Bitmap Coding. Pin
John R. Shaw21-Nov-03 11:59
John R. Shaw21-Nov-03 11:59 
GeneralRe: Printing and Bitmap Coding. Pin
krondorl22-Nov-03 5:30
krondorl22-Nov-03 5:30 
GeneralRe: Printing and Bitmap Coding. Pin
John R. Shaw22-Nov-03 7:12
John R. Shaw22-Nov-03 7:12 
GeneralVisual Studio.net 2003 Pin
(Steven Hicks)n+121-Nov-03 7:57
(Steven Hicks)n+121-Nov-03 7:57 
GeneralRe: Visual Studio.net 2003 Pin
Mike Dimmick21-Nov-03 13:15
Mike Dimmick21-Nov-03 13:15 
QuestionPrinting the contents of a CListCtrl ? Pin
Brian van der Beek21-Nov-03 5:27
Brian van der Beek21-Nov-03 5:27 
AnswerRe: Printing the contents of a CListCtrl ? Pin
Roger Allen21-Nov-03 6:29
Roger Allen21-Nov-03 6:29 
GeneralRe: Printing the contents of a CListCtrl ? Pin
Brian van der Beek23-Nov-03 21:25
Brian van der Beek23-Nov-03 21:25 
GeneralUsing SetCheck in a dialog app. menu Pin
cercis21-Nov-03 4:46
cercis21-Nov-03 4:46 
GeneralRe: Using SetCheck in a dialog app. menu Pin
RChin21-Nov-03 5:18
RChin21-Nov-03 5:18 
GeneralMemory Managers with C, C++ and MFC Pin
Patje21-Nov-03 3:58
Patje21-Nov-03 3:58 
QuestionHow to get rid of the "Help" button in a property sheet in wizard mode? Pin
Salvador Dali21-Nov-03 3:13
Salvador Dali21-Nov-03 3:13 
AnswerRe: How to get rid of the "Help" button in a property sheet in wizard mode? Pin
Michael P Butler21-Nov-03 3:34
Michael P Butler21-Nov-03 3:34 
GeneralCFileException Pin
ns21-Nov-03 2:39
ns21-Nov-03 2:39 
GeneralRe: CFileException Pin
Mike Dimmick21-Nov-03 3:02
Mike Dimmick21-Nov-03 3:02 
GeneralRe: CFileException Pin
ns21-Nov-03 3:18
ns21-Nov-03 3:18 
QuestionResize a listctrl? Pin
Zizilamoroso21-Nov-03 1:02
Zizilamoroso21-Nov-03 1:02 

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.