strongm, this is a w e s o m e.
Indeed, this is exactly what I wanted... and so elegant! Thank you so much!
I'll have a happy weekend now. I hope you'll have one too. [bigsmile]
Hi strongm,
This looks not too difficult. Thanks for sharing all the details!
One thingie though... I've never registered a VB6 dll; and VB6 dlls in the GAC won't work. Using regsvr32 looks fine initially and I can set a reference to vbDataTransfer without any problems, but then the code...
Okay, yes that sounds plausible. Here's the C# format, easily translated indeed. And if you'll allow me... you can skip the "With... End With" in your function. [wink]
public byte[] GetImageBytes(Image image)
{
var stream = new MemoryStream()...
Hi strongm,
Yes, I got it working! This is neat.
It looks like I've said a little too much though when I mentioned "Currently I can store the picture data (a .NET Bitmap class) in memory and the address from which to start reading is known". - thinking a C# version of VarPtr would give me the...
Hi everyone,
I have to research the fastest way to transfer pictures from a C# application - which generates them - to a VB6 form... if this can be done at all. Animation by replacing must be possible, but the smoother the better. Storing the pictures somewhere on disk and loading them in VB6...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.