 |
|
 |
Just what I needed and well documented, thanks!
|
|
|
|
 |
|
 |
In reading the threads I see that the command line build may reference the adapter to determine whether or not the graphics mode is supported. If the error is received that the graphics mode is not supported and it is supported when using display settings control panel what would you recommend?
Reslist - 800 x 480 isn't on there, it only has 800 x 600
Thanks in advance
|
|
|
|
 |
|
|
 |
|
 |
Hi.
Yes. Good tool but...
1) if you are using command line interface - there should not be any MessageBoxes at all!!!
Example - when start "ResSwitch.exe /?" it displays MessageBox. It should print error message to console.
Any GUI elements in command line interface is nonsense.
2) It is good to provide some basic help on usage by "/?" or "/help" command line switch.
Regards,
Dmitry.
|
|
|
|
 |
|
 |
Is there any chance these could be made into code / class / dll files that could be used in a visual basic .net 2005 program?
I have been using this software from .cmd files for years and think the program is awesome, but I have now started poking around with vb and would like to make use of the code on offer.
Well done on a great program I have relied on and made use of for a long time!
|
|
|
|
 |
|
 |
Changing color depth requires a reboot on older versions of Windows (some versions of Windows 95 in particular exhibit this problem). If the user has some form of DirectX installed there is a nifty trick that will allow you to bypass this reboot.
1) Change the display settings with the appropriate API calls (as shown in this article).
2) Open a full-screen, exclusive mode directX window.
3) Close the window.
That's it! Opening and closing DirectX in full screen mode causes GDI to reintialize with your new color depth settings.
--Rudy
|
|
|
|
 |
|
 |
What's the point when .NET won't run on Windows 95?
|
|
|
|
 |
|
 |
Hello Thanx for the code
but there ias a problem when i compile the code it gives me an error that mfc42.lib not found i have downloaded the specified mfc42.exe
but it did not solve the problem
|
|
|
|
 |
|
 |
If it really is MFC42.lib causing problems then either your install of VC is screwed up or you need to update your lib settings. I'd bet that it is not this and it is "MFC42U.LIB" or "MFC42UD.LIB". If this is the case, then I'd suggest you build the Win32 Ascii or Win32 Debug configuration (if you are not interested in a Unicode build) or else do a custom reinstall of VC specifying that you want the MFC Unicode libraries installed.
|
|
|
|
 |
|
 |
What great piece of work !
+
Does it allow keeping the changed screen mode after restarting the computer ?
(how ?)
Best Regards - Yovav Gad
EMail: Dev@SuperMain.com
Web-Site: www.SuperMain.com
|
|
|
|
 |
|
 |
I'm pretty sure the changes it make are persistant.
|
|
|
|
 |
|
 |
10X 4 the fast reply.
I changed on XP (using ResSwitch.exe),
from 1024x768 to 800x600
after Restart it become 1024x768 again
should I use specific function to remember the last switch ?
Best Regards - Yovav Gad
EMail: Dev@SuperMain.com
Web-Site: www.SuperMain.com
|
|
|
|
 |
|
 |
To have the change affect any logged in user as opposed to the current user, you need to use the CDS_GLOBAL flag in the call to ChangeDisplaySettings. Currently my class and app does not support this, which I will add for the next user.
|
|
|
|
 |
|
 |
Hi,
Great work pjnaufter .
I'm not a C++ programmer but I want to use your resList/resCopy
with a batch script that only outputs user's current display settings in one line .txt file.
eg.
.txt file :
1024 768 32 60
----------------------
This is because I want to firstly detect and save the current display settings then change it to 640 480 ,run a program , when exit return to previous user display settings is this possible ?
Thanx
La Elaha Ella Allah
-------------------------
http://flashkid.8m.com
|
|
|
|
 |
|
 |
The simplest solution to this would be to just use the C++ class which resList uses and drop it into a new console app which can write to a file or whatever you desire. If you want, contact me directly (pjna@naughter.com) if you want to contract me to do this. Alternatively you could do it yourself if you have access to a C++ compiler
|
|
|
|
 |
|
 |
A workaround that doesn't involve any C++ coding:
In the batch script that changes the resolution, include a line that creates a file in the user's Windows startup folder with the same resolution that you are changing to.
I.E. If your batch file looks like this:
@echo off
ResSwitch.exe 1024 768 32 85
include a line that creates a file called "resSwitch.cmd" in C:\Documents and Settings\JohnDoe\Start Menu\Programs\Startup\ that also includes the above.
Make sure that if you have different batch files for different resolutions, the file you generate always has the same name (e.g. resSwitch.cmd), so that it overwrites whatever's in the startup directory. Otherwise, I would think that Windows will run all the scripts in a row, which I wouldn't think would be too healthy for your screen card or screen.
CAVEAT EMPTOR: I haven't tried the above solution yet, but I intend to.
|
|
|
|
 |
|
 |
In Win2k, when I switch from 800x600 24 to 1024x768, taskbar stays on it's position. This means, it's 800px wide, and is 600px from the top of the screen. Why does it happen and how to fix this??
BTW: In Win2k, is it possible to let every user have different screen resolution?
Maciek Niedzielski
|
|
|
|
 |
|
 |
The API's which the code uses is very dependent on the quality of the graphic card drivers. A couple of ideas:
1. Try it on other machines with the same OS, but different graphics cards to confirm it is a driver issue.
2. Check you graphics card vendor for updates.
3. Consult the MSDN for any possible KB articles.
|
|
|
|
 |
|
 |
Good job, but you can do the same thing using control Desk.cpl,,3
Francesc
|
|
|
|
 |
|
 |
Maybe so, but I thought Code Project was about sharing code on how to do things in Windows. Pointing out that Windows has a built in way of achieving the same is not much good to the programmer who wants to find out the API calls which MS use and provide.
|
|
|
|
 |
|
 |
Hi,
How it is possible to execute this ?
executing "control Desk.cpl,,3" just brings me the screen resolution change screen,
+ does it allow U to know what are the available modes ?
Thanks in advanced.
Best Regards - Yovav Gad
EMail: Dev@SuperMain.com
Web-Site: www.SuperMain.com
|
|
|
|
 |
|
 |
Using this command line is just a shortcut to bringing up control panel applets. It will do nothing more than that. If you want to get the list of modes, then just use the Windows API just like the ResList app does i.e. just look at the code in it!.
|
|
|
|
 |
|
 |
How can I modify Gamma, Brightness, Contrast or temperature for my video dispaly from my program ?
Thank you!
|
|
|
|
 |
|
 |
This is adapter specific and AFAIK there is no documented Win32 API's to allow you to do this. You will need to contact the developers of your monitor to see if they allow this functionality to be programatically change. For example my Mitsubshi DiamondPro monitor provides an App which changes these settings via a USB connection.
|
|
|
|
 |
|
 |
Very, very cool. Thanks for sharing this.
|
|
|
|
 |