Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpenPrinter... Pin
March'1-Aug-02 4:45
March'1-Aug-02 4:45 
GeneralRe: OpenPrinter... Pin
pépé2-Aug-02 0:02
pépé2-Aug-02 0:02 
GeneralProgram expiration Pin
JohnnyNin1-Aug-02 4:43
JohnnyNin1-Aug-02 4:43 
GeneralRe: Program expiration Pin
Chris Losinger1-Aug-02 4:47
professionalChris Losinger1-Aug-02 4:47 
GeneralRe: Program expiration Pin
includeh101-Aug-02 4:49
includeh101-Aug-02 4:49 
GeneralRe: Program expiration Pin
Peter Occil1-Aug-02 9:02
Peter Occil1-Aug-02 9:02 
Questionfile manager, a open resource for user? Pin
includeh101-Aug-02 4:37
includeh101-Aug-02 4:37 
GeneralGetPrinterDeviceDefaults and NT4 Pin
matura1-Aug-02 4:18
matura1-Aug-02 4:18 
I have a code snippet that just doesn't seem to work on 2 NT4 machines here(Win2K/98 are fine).

Here's the code:

PRINTDLG pdlg;
ZeroMemory(&pdlg, sizeof(PRINTDLG));
pdlg.lStructSize=(DWORD)sizeof(PRINTDLG);
BOOL bVal = AfxGetApp()->GetPrinterDeviceDefaults(&pdlg);

Even though both NT machines have default printers setup, bVal returns FALSE every time.

Any ideas?
Questionip address, who is god for it? Pin
includeh101-Aug-02 4:16
includeh101-Aug-02 4:16 
AnswerRe: ip address, who is god for it? Pin
Chris Losinger1-Aug-02 4:21
professionalChris Losinger1-Aug-02 4:21 
GeneralRe: ip address, who is god for it? Pin
includeh101-Aug-02 4:45
includeh101-Aug-02 4:45 
GeneralRe: ip address, who is god for it? Pin
lucy1-Aug-02 5:00
lucy1-Aug-02 5:00 
GeneralRe: ip address, who is god for it? Pin
includeh101-Aug-02 5:11
includeh101-Aug-02 5:11 
GeneralRe: ip address, who is god for it? Pin
lucy1-Aug-02 5:12
lucy1-Aug-02 5:12 
AnswerRe: ip address, who is god for it? Pin
Jeremy Falcon1-Aug-02 5:05
professionalJeremy Falcon1-Aug-02 5:05 
Generaltext width Pin
CaesarCZ1-Aug-02 3:58
CaesarCZ1-Aug-02 3:58 
GeneralRe: text width Pin
includeh101-Aug-02 4:19
includeh101-Aug-02 4:19 
GeneralCursor with CSplitterWnd, dll, wizard, trick, help ... Pin
includeh101-Aug-02 3:56
includeh101-Aug-02 3:56 
GeneralIcon... Pin
Michael Helmberger1-Aug-02 3:53
Michael Helmberger1-Aug-02 3:53 
GeneralRe: Icon... Pin
includeh101-Aug-02 9:27
includeh101-Aug-02 9:27 
GeneralRe: Icon... Pin
Anonymous1-Aug-02 10:17
Anonymous1-Aug-02 10:17 
Generalobject oriented models Pin
Anonymous1-Aug-02 3:38
Anonymous1-Aug-02 3:38 
QuestionHow to create Shortcut for a file Pin
Koundinya1-Aug-02 2:32
Koundinya1-Aug-02 2:32 
AnswerRe: How to create Shortcut for a file Pin
Jean-Michel LE FOL1-Aug-02 2:47
Jean-Michel LE FOL1-Aug-02 2:47 
AnswerRe: How to create Shortcut for a file Pin
includeh101-Aug-02 8:32
includeh101-Aug-02 8:32 

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.