forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I need a way to change WinXP video from 32bit to 16bit

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Jan 24, 2006 3:51 pm    Post subject: I need a way to change WinXP video from 32bit to 16bit Reply with quote

I use a map editor that only works on 16 bit mode, but I use 32bit most the time, so this would save me a lotta time and pain doing it with the (right click) mouse (desktop display settings) way.

So I really really need a way to change WinXP video 32bit to 16bit settings and vice versa by way of VDS5 code or DLL/ DSU anything.. Laughing

I been trying to accomplish this for a long time.

Thanks in advance and appreciate your reading this also Cool
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Jan 24, 2006 6:35 pm    Post subject: Reply with quote

You'd have to use the ChangeDisplaySettings API Function, which takes a huge DEVMODE structure.
Could be done in a DLL pretty easily, but I wouldn't do it in VDS.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Jan 24, 2006 8:18 pm    Post subject: Reply with quote

Give this DLL a try, for now it's attached to this post.
[UPDATE] New version attached to post below [UPDATE]

_________________
-Sheep
My pockets hurt...


Last edited by SnarlingSheep on Thu Jan 26, 2006 4:38 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Jan 24, 2006 9:56 pm    Post subject: Reply with quote

How you been SnarlingSheep
Did you write that DLL today? wow !!!!! fast and super-good, worked perfect, better than ever dreamed Very Happy

Only thing I did wrong though I forgot to change the example from 800 to 1024, had to re-arrange my 99 desktop icons, looked looks like a tornado hit - hehe (but I know that was my fault - lol) By the way is there a way to save 1024 icon arrangements in XP that you know of right off the top of that massive brain enclosure of yours Razz

Thanks for that awesome DLL - weeeeeeeee
That made my decade...
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Jan 25, 2006 2:58 am    Post subject: Reply with quote

lol, yep wrote that today.
As for saving icon positions, I'm not sure of a way other than this app that I use:
Restore Desktop

It adds 2 items to the desktop context menu, Save Desktop and Restore Desktop. Doesn't always put every last icon in it's saved position, but it'd probably fix 90 of those 99 Wink

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Jan 25, 2006 11:36 am    Post subject: Reply with quote

Nice Wink

WOW - If I was an athiest I would start thinking your GOD Laughing

That Restore Desktop works better than perfect. (Thankyou very much!)
Your DLL works perfect except 1 tiny little bug thats prolly a typeO or timing thingy.
Its when I come back to 32bit 1024x768, it forgets to set the 32bit part.
If I REM out (setdisplay res,1024,768) the 32bit works perfectly.
So Right now I'm doing them manually separately.
I guess I could make each thing in its own EXE and run the modes from my main VDS5 EXE program, haven't tried that yet.

Any ways, there is no complaning above, just thought you'd like to know.

Below is how I have them written, maybe its my fault(usually is):
Code:
external C:\v5vds\dlls\projects\vdsdisplaysettings.dll
#define command,setdisplay
info This takes a few seconds "-" be patient please".."
setdisplay color,32
info Bit-Depth is now: 32
setdisplay res,1024,768
info Resolutions is now: 1024x768
EXIT


I was wondering, can you walk on water deeper than your height? Rolling Eyes

Thanks again greatly SnarlingSheep Wave
Back to top
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Jan 25, 2006 1:03 pm    Post subject: Reply with quote

According to the help file, that is how it's supposed to work...

Cool dll... I'll be able to use this for something thats been plaguing me for a long time!

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Jan 25, 2006 4:22 pm    Post subject: Reply with quote

Smart of me not to try the example I gave with the DLL...
Here the first command works but not the second, I'm guessing because Windows is still switching modes at the time of the second one. Although I did try adding a 'wait 3' in between them without success, it may need a bit longer.
I will have to look into it later on today.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Jan 25, 2006 4:46 pm    Post subject: Reply with quote

No Problem
I tried up to Wait "7" hours ago, but you can try, maybe I missed something.
GoodLuck..
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jan 26, 2006 4:40 am    Post subject: Reply with quote

Bugs should be worked out now, I also added a function to return the current bit-depth. Check the readme.
New version is attached.



VDSDisplaySettingsDLL.zip
 Description:

Download
 Filename:  VDSDisplaySettingsDLL.zip
 Filesize:  3.29 KB
 Downloaded:  1487 Time(s)


_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Jan 26, 2006 8:04 am    Post subject: Reply with quote

Great,
Sounds gooder than Goodest.
I downloaded it and disposed of the old one.
I'll check it out tommorrow, its late here now.
Who should I talk to or try DLL etc.. for drawing in a VDS program?

Thanks a kaaZillion... Very Happy
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jan 26, 2006 7:37 pm    Post subject: Reply with quote

I think it'd be pretty difficult to write a dll for what you want.
From what it looks like you need, it'd have to take a bunch of positions for the white and gray parts of the image, and then write a greyscale bitmap.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Jan 26, 2006 11:29 pm    Post subject: Reply with quote

Well, I could be real happy just having simple lines drawn on my main dialog for now. (wouldnt expect more than that - then maybe in a year or so think of something for it).
Exporting it or printing it out may be easier than we think right now.
Would be plenty to get started for now...
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Jan 27, 2006 7:42 am    Post subject: Reply with quote

I really haven't followed this thread, and I'm kinda busy right now, but Mac's VDSUG has drawing abilities
if that's what ya need.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Jan 30, 2006 4:01 pm    Post subject: Reply with quote

Thanks doc
I knew I read it somewheres Laughing

I'll check it out in the near future and see if it will do the job.

Appreciate your reading and helping..
cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group