Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralResizing the desktop area Pin
MiamiCoder7-Nov-02 4:46
MiamiCoder7-Nov-02 4:46 
GeneralRe: Resizing the desktop area Pin
Chris Richardson7-Nov-02 7:08
Chris Richardson7-Nov-02 7:08 
GeneralRe: Resizing the desktop area Pin
Anonymous7-Nov-02 10:20
Anonymous7-Nov-02 10:20 
Generaldll Pin
7-Nov-02 3:59
suss7-Nov-02 3:59 
GeneralRe: dll Pin
Anonymous7-Nov-02 4:38
Anonymous7-Nov-02 4:38 
GeneralRe: dll Pin
Stephane Rodriguez.7-Nov-02 4:57
Stephane Rodriguez.7-Nov-02 4:57 
Generalget default printer name Pin
vgkotha7-Nov-02 3:25
vgkotha7-Nov-02 3:25 
GeneralRe: get default printer name Pin
Navin7-Nov-02 3:51
Navin7-Nov-02 3:51 
I think in 95/98/Me, you have to monkey with the WIN.INI file to get the info you need. Try something like this:

TCHAR buffer[MAX_PATH];
::GetProfileString("Windows", "device", "", buffer, MAX_PATH);

(Look up GetProfileString on MSDN for more info.)

The printer info should be in that buffer, although I think it also contains some additional stuff (like the port name) so you may have to parse it a little.

Hope this gets you on the right track.


Even a broken clock is right twice a day.
GeneralRe: get default printer name Pin
Chad Koehler7-Nov-02 5:32
Chad Koehler7-Nov-02 5:32 
QuestionHow can I avoid a window get the focus ? Pin
Cris7-Nov-02 2:43
Cris7-Nov-02 2:43 
AnswerRe: How can I avoid a window get the focus ? Pin
includeh107-Nov-02 2:53
includeh107-Nov-02 2:53 
GeneralRe: How can I avoid a window get the focus ? Pin
Cris7-Nov-02 7:30
Cris7-Nov-02 7:30 
GeneralRe: How can I avoid a window get the focus ? Pin
includeh107-Nov-02 8:30
includeh107-Nov-02 8:30 
GeneralRe: How can I avoid a window get the focus ? Pin
Cris8-Nov-02 0:17
Cris8-Nov-02 0:17 
GeneralRe: How can I avoid a window get the focus ? Pin
includeh108-Nov-02 1:25
includeh108-Nov-02 1:25 
GeneralRe: How can I avoid a window get the focus ? Pin
Cris8-Nov-02 1:36
Cris8-Nov-02 1:36 
GeneralCListCtrl Oddity Pin
Richard Green7-Nov-02 2:02
Richard Green7-Nov-02 2:02 
GeneralLowLevelMouseProc Pin
Gleb7-Nov-02 0:58
Gleb7-Nov-02 0:58 
GeneralRe: LowLevelMouseProc Pin
Stephane Rodriguez.7-Nov-02 1:52
Stephane Rodriguez.7-Nov-02 1:52 
GeneralRegisterWindowMessage vs. WM_USER Pin
Alexinuk7-Nov-02 0:30
Alexinuk7-Nov-02 0:30 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
jhwurmbach7-Nov-02 1:21
jhwurmbach7-Nov-02 1:21 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Alexinuk7-Nov-02 1:26
Alexinuk7-Nov-02 1:26 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
jhwurmbach7-Nov-02 1:34
jhwurmbach7-Nov-02 1:34 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Tim Smith7-Nov-02 2:44
Tim Smith7-Nov-02 2:44 
GeneralRe: RegisterWindowMessage vs. WM_USER Pin
Alexandru Savescu7-Nov-02 2:48
Alexandru Savescu7-Nov-02 2:48 

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.