Click to See Complete Forum and Search --> : Graphic problems, yet again...
DiGiTaIErRoR
Oct 27th, 2001, 05:28 PM
Ok I kind of, let me emphasize that KIND OF, got this down, i'm getting points drawn on my form anyway...
How can I clear the form? Or even go further and possibly make what's drawn fade out to the background color, which is black.
I included a zip of the exe of what I'm doing in VB, I want to convert this to c++ so it's faster and hopefully cooler. Since c++ can handle graphics much faster than VB.
Any other suggestions are welcome since I am a newbie and c++ is much more difficult and complex than VB. If you do suggest something please include some source so I can *TRY* to use it.
Thanks a lot!
amac
Oct 27th, 2001, 05:32 PM
I dont really have any answers for you... but how hard is it to create something like that?
DiGiTaIErRoR
Oct 27th, 2001, 05:45 PM
The math is the easy part, lol, making C++ work with it is difficult... I can get the points to appear using setpixelV with windows.h API set. But... I can get the BG color to change, and I have no idea how to clear it.
I'm stuck!
DiGiTaIErRoR
Oct 27th, 2001, 05:48 PM
Here's what I got so far in c++. Maybe you'll be able to help me better?
DiGiTaIErRoR
Oct 27th, 2001, 05:49 PM
Oh yeah... since i don't know how to do it with a timer setting it's refresh you have to move ur mouse over the form.
amac
Oct 27th, 2001, 05:52 PM
The source would help even more...
did you try redrawing the window... with UpdateWindow() or RedrawWindow()?
amac
Oct 27th, 2001, 05:55 PM
If you ever have time, I would be interested in learning more about the "math".
DiGiTaIErRoR
Oct 27th, 2001, 05:59 PM
I messed up the source... it doesn't work now... something about setpixelv being static or something.
DiGiTaIErRoR
Oct 27th, 2001, 05:59 PM
Is there anyway to put this in a console?
It'd probably be better.
*sigh* :confused:
DiGiTaIErRoR
Oct 27th, 2001, 06:02 PM
Hey amac you have IRC, msn, aim or something so we could chat about this?
amac
Oct 27th, 2001, 06:04 PM
Not sure about the console thing... I dont see why you couldnt though.
I am on ICQ right now... 9685571, but I can also use IRC.... I will leave that up to you
DiGiTaIErRoR
Oct 27th, 2001, 06:07 PM
I don't have icq, too many advertisements....
i'll be on irc.newnet.net
in #c++
my name is dig_err
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.