Post

 Resources 

Console

Comments



Return to tutorial


9/10/2005 | Posted by: ocobot

hi, how can i use the bitbtl api to load an array to a picturebox?

sorry i don´t speak english, but i will try to understand your answer

thanks

alberto


6/8/2004 | Posted by: Deztus

Hi,
This is by far one of the best tuts on double buffering I have found. Thank you for being considerate enough to make it. One problem though, with the code that is. I used the concept your tutorial tought me and made my own double buffer. But, in the process of testing and using it I had found an error. When blitting the back-buffer to the screen with each occurance of the timer(or loop), you don't delete the previous DCs and Object(s). Over time, this eventually causes memory leaks and the program to crash due to memory exhaustion. Just wanted to let you know and try to help out.
Thank you once again for making this wonderful tutorial.

*who knows i may have looked over that part in your displayed code; sorry for the mistake if i had.

-Deztus


6/14/2004 | Posted by: Adam

Excellent tutorial, but this only seems to work for event animation. I can't seem to find a way to put this in the Form_Load procedure and have it stay without using AutoRedraw. Ah well, I'm looking. Much faster than image controls. Thank you.


5/20/2005 | Posted by: jacques trehoux

Thank you for taking the time to help me. I had thought of it, of course but there is a new problem when I do: I get byref errors when using API calls, since most are declared as int

Anyway, my handles seem to have at least 9 digits, beyond a long' scope, IIRC.

Thank you again. You see I do not understand why tutorial code can't run when I copy it verbatim.

jacques


5/19/2005 | Posted by: jacques trehoux

HI
To tell you that you have opened my eyes to GDI and its functions. Thank you very much.
However, I seem to have a problem
I have Windows XP, VB6 and Visual Studio.
Whenever I try to use DCs, I get "Run Time Error 6 Overflow". This is because handles are declared as integers, but the number found is well beyond an integer's scope.
Is there a way around this?
I'd appreciate any help you could give me on this, thank you.
jacques


5/19/2005 | Posted by: Timothy Patrick

You should be declaring all DC handles as Long .. not as Integers. Hope that helps.


4/26/2004 | Posted by: Maschadow

GJ, the best tutorial for beginners I have found so far. More on directdraw pls.


4/21/2004 | Posted by: Lynn

Good tutorial, easy to understand. Well done :0)


4/19/2004 | Posted by: Eric Coleman

Hey, great tutorial.


3/9/2005 | Posted by: George

Very nice job!

I tried to add a second graphic to the example and it really caused some problems with my screen.

Is there an add-on to this example to show how to have more than 1 graphic on the screen?

Thanks,

George


12/14/2004 | Posted by: Rabbidmoose

Hey, good tutorial. Just one little small thing. where it says "nHeight" you say graphics width. I figure anyone with half a brain can figure it out, but just a little typo correction


10/17/2004 | Posted by: OHDev

Gr8 Tut!!
yeah it's better than the autoredraw thingy :)

I have a Ques here ... yes there isn't any Flickering but the Sprite isn't moving that Smooth ... this is not only in ur example but i encouter it in every example i see ...
the sprite is like jagging or not moving in equal steps ... it's so small to see but it affects the smoothness of moving it ..
Any idea ??
Thnx


10/15/2004 | Posted by: Kinkood

Great tutorial, worked perfectly... that is until I switched my program to .net... then it says vbWhiteness, vbBlackness, vbSrcCopy, and .hdc weren't able to be upgraded... I was using 6.0 and it worked... dang .net....





Name
Email (optional)
Comment





Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 33 visitors within the last 20 minutes
RSS News Feed