Click here to Skip to main content
16,005,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdding a file to Windows MRU Pin
yarp12-Apr-05 8:36
yarp12-Apr-05 8:36 
GeneralRe: Adding a file to Windows MRU Pin
Gary Kirkham12-Apr-05 8:38
Gary Kirkham12-Apr-05 8:38 
GeneralRe: Adding a file to Windows MRU Pin
yarp12-Apr-05 9:00
yarp12-Apr-05 9:00 
GeneralRe: Adding a file to Windows MRU Pin
Bob Stanneveld12-Apr-05 22:41
Bob Stanneveld12-Apr-05 22:41 
GeneralRe: Adding a file to Windows MRU Pin
yarp13-Apr-05 1:51
yarp13-Apr-05 1:51 
Generalinstallshield vc++ 6 regsvr32 myDLL Pin
Anonymous12-Apr-05 6:41
Anonymous12-Apr-05 6:41 
QuestionHow to develope a project to navigate pst file with mapi. Pin
elicor12-Apr-05 5:48
elicor12-Apr-05 5:48 
GeneralSetting Printer Resolution Pin
bk515112-Apr-05 4:44
bk515112-Apr-05 4:44 
How can set the printer resolution in my VC++ program without getting user input?
I don't want to use the windows defined dialog that allows the user to pick the resolution. The printer needs to constantly be set to 300 X 300 dpi. This is required to print reports. However, my program prints detailed line graphs and I need to change the resolution to 600 X 600 dpi only when printing my data.

I use:
CPrintDialog dlg(FALSE);
DEVMODE *settings;


//Get Printer diagnostics
if(!dlg.GetDefaults())
{
AfxMessageBox("dlg.GetDefaults() has failed");
}

//Sets printer resolution to 600 DPI
settings = dlg.GetDevMode();
settings->dmPrintQuality = 600;

But this has no affect. Am I missing something, or doing this completly wrong?

Thanks in advance
GeneralRe: Setting Printer Resolution Pin
liquid_12-Apr-05 7:06
liquid_12-Apr-05 7:06 
GeneralRe: Setting Printer Resolution Pin
bk515112-Apr-05 7:35
bk515112-Apr-05 7:35 
GeneralRe: Setting Printer Resolution Pin
bk515112-Apr-05 10:35
bk515112-Apr-05 10:35 
GeneralDifference Between F5(Debug) and CtrlF5(Release)mode Pin
badal_akr12-Apr-05 4:36
badal_akr12-Apr-05 4:36 
GeneralRe: Difference Between F5(Debug) and CtrlF5(Release)mode Pin
Maximilien12-Apr-05 5:46
Maximilien12-Apr-05 5:46 
GeneralRe: Difference Between F5(Debug) and CtrlF5(Release)mode Pin
badal_akr14-Apr-05 4:32
badal_akr14-Apr-05 4:32 
GeneralCreateInstance in separate thread Pin
lordguid12-Apr-05 4:13
lordguid12-Apr-05 4:13 
GeneralRe: CreateInstance in separate thread Pin
Nemanja Trifunovic12-Apr-05 5:15
Nemanja Trifunovic12-Apr-05 5:15 
QuestionCSystemTray? Pin
Bob Stanneveld12-Apr-05 4:04
Bob Stanneveld12-Apr-05 4:04 
AnswerRe: CSystemTray? Pin
PJ Arends12-Apr-05 6:27
professionalPJ Arends12-Apr-05 6:27 
GeneralRe: CSystemTray? Pin
Bob Stanneveld12-Apr-05 22:25
Bob Stanneveld12-Apr-05 22:25 
GeneralAPI used in Dial Up Networking (Win98) Pin
jeden12-Apr-05 3:21
jeden12-Apr-05 3:21 
GeneralRe: API used in Dial Up Networking (Win98) Pin
ThatsAlok12-Apr-05 18:53
ThatsAlok12-Apr-05 18:53 
GeneralRe: API used in Dial Up Networking (Win98) Pin
jeden12-Apr-05 19:11
jeden12-Apr-05 19:11 
GeneralRe: API used in Dial Up Networking (Win98) Pin
ThatsAlok12-Apr-05 19:23
ThatsAlok12-Apr-05 19:23 
GeneralRe: API used in Dial Up Networking (Win98) Pin
jeden12-Apr-05 19:52
jeden12-Apr-05 19:52 
GeneralKnow Shadow menu State in Win2k & XP Pin
r3dqu33n12-Apr-05 3:11
r3dqu33n12-Apr-05 3:11 

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.