Print a File using c++

How to choose a printer and print a file using C++

Page 1 of 1

2 Replies - 2907 Views - Last Post: 27 May 2010 - 11:53 AM Rate Topic: -----

#1 dmehta5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 13-April 10

Print a File using c++

Posted 26 May 2010 - 09:13 PM

Hi,
I would like to know how to call windows Api using c/c++ programming. I have used the predefined function in C# like Printdialog, PrintPreview dialog. But i want to implement it using c++ , I have looked through the MSDN but it describes the function. Can anyone just give a simple program to print a single line " Hello world" and also how to choose a network printer.Please share if you have any link available that describes about the choosing the printer or calling WinApi(other than MSDN).

Is This A Good Question/Topic? 0
  • +

Replies To: Print a File using c++

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5296
  • View blog
  • Posts: 27,178
  • Joined: 10-May 07

Re: Print a File using c++

Posted 26 May 2010 - 09:16 PM

View Postdmehta5, on 26 May 2010 - 10:13 PM, said:

Can anyone just give a simple program to print a single line " Hello world"

We don't give simple programs. If you did this in C#, then the Windows API calls will be the same, can you post your code here, & we'll take a look at the MSDN & see if we can point you in a more exact direction.
Was This Post Helpful? 0
  • +
  • -

#3 BlueMelon  Icon User is offline

  • D.I.C Head

Reputation: 40
  • View blog
  • Posts: 187
  • Joined: 27-April 10

Re: Print a File using c++

Posted 27 May 2010 - 11:53 AM

If your programming in Win32, it will be a LOT harder then C# drag&drop...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1