PDA

View Full Version : any expert vb coders around - need help with API call


confused
6th January 2006, 11:59
Hi all,

I have a client that has an old piece of software, the type that was designed for a 640 x 480 monitor, has no maximize button, and on a 1024 or higher screen looks like a spot in the center, I'm sure you k now the ones I mean. In addition, this software wont run properly (it has vid clips) unless hardware acceleration is dsabled on the display adapter.

I have put together a small vb ap to change the screen res using the ChangeDisplaySettings API function. That works fine, but I cant programitcally disable/re enable hardware acceleration. Can anyone help out here? OS are all XP pro SP2, and DO NOT have .net framework so needs to be vb6 not .net. Actually doesnt have to be VB if someone can provide an exe as I could just call the exe from my one.

Thanks

CALV

DotNetWebs
6th January 2006, 13:25
Hi

I haven't done any VB6 for a while. When I used to and I came across this sort of problem the first place I would look was the Windows programmer newsgroups. For a very quick look it does seem that this has came up before:

http://groups.google.co.uk/group/microsoft.public.win32.programmer.gdi/browse_thread/thread/2332781acf64e251/3cf4d79945d717ac?lnk=st&q=ChangeDisplaySettings+hardware+acceleration&rnum=3&hl=en#3cf4d79945d717ac

Sorry I haven't got the time to research it a bit further I would suggest you post your question in one of these newsgroups or a Windows developer forum.

Regards

jmds
6th January 2006, 14:30
Could you not use the 'Compatability' options on the shortcut?

jmds
6th January 2006, 14:35
The only other thing that springs to mind is to ask on the http://www.powerbasic.com forums. There are plenty of API experts on there.

confused
6th January 2006, 16:34
Thanks for the replies all,

I checked that link above, I'll have a tinker with that later.

Using compatibility mode doesnt work, I tried it ! works fine for the resolution.

I'll check out powerbasic, might come in handy in future.

Thanks again

CALV