Hello all
As the topic mentions, I have a jpg in the "Custom" area of my VB6 .res
file. I realize I could just convert the jpg into a bmp and use
LoadResPicture, but I like the smaller size of the jpg.
I would however like to accomplish teh same objective. I have an image
control, that I want to place for the image, the jpg from my resource
file. Using Set Picture1.Picture = LoadResPicture(104, vbResBitmap)
gives me a "picture not found" type error, while LoadResData(104,
"CUSTOM") gives me a "objectr required" type error.
VB won't simply let me save a jpg in the BMP slot of the resource file,
so the only way I can see is to place it in the custom area.
Another thing I should mention, is that I do not want to first extract
the jpg file to the hard drive and then tell the image control to use
it, I want it all done in memory.
Does anyone know how I can do this?
TIA
Archived from group: microsoft>public>vb>enterprise