Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbPoint Doesn't Work With Vista

Author
Message
Silver Surfer57
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 4th Jan 2010 17:53
I'm trying to write a very simple DarkGDK C++ program to count the number of pixels that match in color to the area I click in and found out that dbPoint does not appear to work properly in Vista but it does in XP. The code compiles and runs just fine, it just does do what it's supposed to.

I did some research and found there are other commands such as dbCircle, dbEllipse, and dbDot that do not work with Vista.

Does anyone know a fix or workaround for this?

Does dbPoint work properly in Win7?

Hard to believe the folks at TGC haven't addressed this issue already. I teach a course using DarkGDK and it's pretty frustrating to teach when several students can't get their programs to work properly because they have Vista.
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 4th Jan 2010 18:58 Edited at: 4th Jan 2010 19:02
Unfortunately this is a known problem and not fixed yet. Feel free to add your comments to the bug report thread. I could only describe my experience there but it would have been good to see other users chime in too, since there were several complaints about this - but not in the bug report section.

Or maybe, raise a new bug report thread because the dbPoint command has not been reported yet.

http://forum.thegamecreators.com/?m=forum_view&t=158209&b=15

http://forum.thegamecreators.com/?m=forum_view&t=160966&b=15

Workarounds: Here are functions which you can substitute for dbCircle and dbEllipse:

http://forum.thegamecreators.com/?m=forum_view&t=158250&b=22

Instead of dots, maybe use dbBox or a two-pixel long line. (I think one-pixel lines do not appear either.)

I don't know a workaround for dbPoint. (The only thing that comes to mind is converting the screen picture to a memblock and read the bytes - if it is feasible at all - but that's too complicated to be helpful.)

I don't know how these commands behave on Windows 7.

Login to post a reply

Server time is: 2024-10-01 20:16:02
Your offset time is: 2024-10-01 20:16:02