Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Which is better? Pin
Anonymous2-Aug-04 17:59
Anonymous2-Aug-04 17:59 
GeneralOpen/Save Dialog Pin
Archer2822-Aug-04 17:18
Archer2822-Aug-04 17:18 
GeneralRe: Open/Save Dialog Pin
PJ Arends2-Aug-04 17:51
professionalPJ Arends2-Aug-04 17:51 
GeneralRe: Open/Save Dialog Pin
David Crow3-Aug-04 4:21
David Crow3-Aug-04 4:21 
GeneralRe: Open/Save Dialog Pin
David Crow3-Aug-04 4:18
David Crow3-Aug-04 4:18 
GeneralOutlook Dial button redirection Pin
Wolfram Steinke2-Aug-04 17:13
Wolfram Steinke2-Aug-04 17:13 
GeneralRe: Outlook Dial button redirection Pin
dharani30-Aug-04 19:21
dharani30-Aug-04 19:21 
GeneralWant an Example of EnumPrinter Function Pin
Amarelia2-Aug-04 16:34
Amarelia2-Aug-04 16:34 
Hi
I want to write a console based simple application. Which on executing gives the name of all printers that are currently connected to network.

The function to do that is EnumPrinter and it's prototype is as :

BOOL EnumPrinters(
DWORD Flags, // printer object types
LPTSTR Name, // name of printer object
DWORD Level, // information level
LPBYTE pPrinterEnum, // printer information buffer
DWORD cbBuf, // size of printer information buffer
LPDWORD pcbNeeded, // bytes received or required
LPDWORD pcReturned // number of printers enumerated
);

Can any one plz give me exact example of how to do this ?

Thank you

Mahesh
GeneralRe: Want an Example of EnumPrinter Function Pin
Aamir Butt2-Aug-04 19:17
Aamir Butt2-Aug-04 19:17 
GeneralRe: Want an Example of EnumPrinter Function Pin
David Crow3-Aug-04 5:43
David Crow3-Aug-04 5:43 
QuestionHow to call SQL Pass through from MFC Regular DLL Pin
TuanTriTue2-Aug-04 16:24
TuanTriTue2-Aug-04 16:24 
GeneralVirtual Destructor Pin
Neelesh K J Jain2-Aug-04 15:55
Neelesh K J Jain2-Aug-04 15:55 
GeneralRe: Virtual Destructor Pin
Tim Smith2-Aug-04 16:07
Tim Smith2-Aug-04 16:07 
GeneralRe: Virtual Destructor Pin
Aamir Butt2-Aug-04 19:23
Aamir Butt2-Aug-04 19:23 
GeneralRe: Virtual Destructor Pin
Maximilien2-Aug-04 16:07
Maximilien2-Aug-04 16:07 
Generaldisplay hypertext in a dialog box Pin
Red Sunday2-Aug-04 15:07
Red Sunday2-Aug-04 15:07 
GeneralRe: display hypertext in a dialog box Pin
PJ Arends2-Aug-04 15:57
professionalPJ Arends2-Aug-04 15:57 
Generalabout system time Pin
yingkou2-Aug-04 14:45
yingkou2-Aug-04 14:45 
GeneralRe: about system time Pin
Tim Smith2-Aug-04 16:10
Tim Smith2-Aug-04 16:10 
GeneralRe: about system time Pin
yingkou2-Aug-04 21:48
yingkou2-Aug-04 21:48 
GeneralI Need some direction Pin
cgriffin2-Aug-04 14:44
cgriffin2-Aug-04 14:44 
GeneralInt 21h Function 440Dh Minor Code 41h (FAT32) Pin
X20402-Aug-04 13:48
X20402-Aug-04 13:48 
GeneralRe: Int 21h Function 440Dh Minor Code 41h (FAT32) Pin
Aamir Butt2-Aug-04 19:32
Aamir Butt2-Aug-04 19:32 
QuestionHow to Hook Notepad? Pin
mrviceroy2-Aug-04 12:05
mrviceroy2-Aug-04 12:05 
Answerhmm Pin
bikram singh2-Aug-04 18:07
bikram singh2-Aug-04 18:07 

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.