I believe you could use SelectObject for this.
Just to be sure though, what method are you using to get the bitmap into the buffer?
Printable View
I believe you could use SelectObject for this.
Just to be sure though, what method are you using to get the bitmap into the buffer?
Dear Megatron,
Thank you for your reply,
I don't need to get the handle for specifc object ,
my problem is:
to use the SetDiBits function. i need to give there as parameter lp (long pointer) to an array of the bit's buffer.
i don't know how to transform my data to pointer .
help me
thanks
ERAN
In VB, you can't use pointers, so just pass the byte array that your data is stored in.
Dear Megatron,
I used SetPixel and it's working just fine.
But thanks anyway.
ERAN