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

C / C++ / MFC

 
GeneralText Processing Pin
Nick Parker22-Nov-01 18:07
protectorNick Parker22-Nov-01 18:07 
GeneralRe: Text Processing Pin
Michael Dunn22-Nov-01 19:50
sitebuilderMichael Dunn22-Nov-01 19:50 
GeneralRe: Text Processing Pin
Nick Parker23-Nov-01 4:09
protectorNick Parker23-Nov-01 4:09 
GeneralRe: Text Processing Pin
Michael Dunn23-Nov-01 8:14
sitebuilderMichael Dunn23-Nov-01 8:14 
GeneralRe: Text Processing Pin
Nick Parker23-Nov-01 10:57
protectorNick Parker23-Nov-01 10:57 
GeneralRe: Text Processing Pin
Michael Dunn23-Nov-01 11:17
sitebuilderMichael Dunn23-Nov-01 11:17 
GeneralRe: Text Processing Pin
Nick Parker24-Nov-01 1:54
protectorNick Parker24-Nov-01 1:54 
GeneralEnumPrinters function Pin
Brett G.22-Nov-01 16:49
Brett G.22-Nov-01 16:49 
Dear Folks,

Am having trouble planting the Win32 function "Enumprinters" in my
MFC project.

Used the following code:

DWORD dwNeeded, dwReturned;
PRINTER_INFO_5 pinfo5
::EnumPrinters(NULL,NULL,5,NULL,0,&dwNeeded, &dwReturned);
pinfo5=malloc(dwNeeded);
::EnumPrinters(PRINTER_ENUM_LOCAL, NULL,5, (PBYTE) pinfo5, dwNeeded, &dwNeeeded, &dwReturned);

Keeps on coming back with the following error:

C:\LabPrint\figDialog.cpp(95) : error C2039: 'EnumPrinters' : is not a member of '`global namespace''
C:\LabPrint\figDialog.cpp(95) : error C2065: 'EnumPrinters' : undeclared identifier

I'm mystified. The code is right out of Petzold. Can't figure
out why the function 'EnumPrinters' seems to be undeclared.


Any help much appreciated!! Thought this would be real simple....;)

Thanks so much,

Brett G.
QuestionHow to display a bitmap of 24 bits correctly?? Pin
Leesen22-Nov-01 16:23
Leesen22-Nov-01 16:23 
AnswerRe: How to display a bitmap of 24 bits correctly?? Pin
Christian Graus22-Nov-01 16:38
protectorChristian Graus22-Nov-01 16:38 
GeneralRe: How to display a bitmap of 24 bits correctly?? Pin
Leesen22-Nov-01 16:48
Leesen22-Nov-01 16:48 
GeneralRe: How to display a bitmap of 24 bits correctly?? Pin
Christian Graus22-Nov-01 17:21
protectorChristian Graus22-Nov-01 17:21 
GeneralSorting the CStringArray Pin
Tili22-Nov-01 15:11
Tili22-Nov-01 15:11 
GeneralRe: Sorting the CStringArray Pin
Christian Graus22-Nov-01 16:42
protectorChristian Graus22-Nov-01 16:42 
GeneralRe: Sorting the CStringArray Pin
Jon Hulatt22-Nov-01 22:29
Jon Hulatt22-Nov-01 22:29 
GeneralRe: Sorting the CStringArray Pin
Tili23-Nov-01 7:23
Tili23-Nov-01 7:23 
GeneralRe: Sorting the CStringArray Pin
Christian Graus23-Nov-01 10:21
protectorChristian Graus23-Nov-01 10:21 
GeneralRe: Sorting the CStringArray Pin
Alvaro Mendez23-Nov-01 11:53
Alvaro Mendez23-Nov-01 11:53 
GeneralCDialog Return Value Pin
Matt Newman22-Nov-01 11:53
Matt Newman22-Nov-01 11:53 
GeneralRe: CDialog Return Value Pin
Christian Graus22-Nov-01 12:11
protectorChristian Graus22-Nov-01 12:11 
GeneralRe: CDialog Return Value Pin
Matt Newman22-Nov-01 12:15
Matt Newman22-Nov-01 12:15 
GeneralComparing the contents of DC's Pin
Member 2362222-Nov-01 11:29
Member 2362222-Nov-01 11:29 
GeneralRe: Comparing the contents of DC's Pin
Christian Graus22-Nov-01 12:13
protectorChristian Graus22-Nov-01 12:13 
GeneralRe: Comparing the contents of DC's Pin
Member 2362222-Nov-01 18:23
Member 2362222-Nov-01 18:23 
GeneralRe: Comparing the contents of DC's Pin
Christian Graus22-Nov-01 19:25
protectorChristian Graus22-Nov-01 19:25 

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.