How about some specifics on how it fails to work? I've never used
CreateDIBSection() (just looked it up and it seems pretty neat). Do you
have Dan Appleman's book (VB 5 Programmer's Guide to the Win32 API)? It's
actually got a sample using this function. If you're a C programmer, you
may be just missing a VB-specific detail (such as proper use of ByVal or
referring to an array by its first element). Post some code.
MS Dev MVP
> need to be able to display this array of bytes quickly to a picture box.
> needs to fast so that I can render an image, display it, render another
> image into the byte-array, and then display that, getting a smooth
> animation. In VC++ you would use CreateDIBSection to do this. I cannot
> find a way to port this into VB. Does anyone know of a way to do this
> or without using CreateDIBSection).
> Adam Swensen