Andrew Truckle
May 5th, 1999, 02:28 AM
I have the following:
char *mybuf;
unsigned short numbytes;
numbytes=adBmpSizeFromFile(filename);
if (numbytes) {
mybuf=malloc(numbytes);
adExtractBmpFileToBuffer(filename ,mybuf,&numbytes);
}
How can I convert this buffer into a HGLOBAL?
I need to to this because the existing code requires a HGLOBAL to be passed and not a char *.
Thanks for your help.
char *mybuf;
unsigned short numbytes;
numbytes=adBmpSizeFromFile(filename);
if (numbytes) {
mybuf=malloc(numbytes);
adExtractBmpFileToBuffer(filename ,mybuf,&numbytes);
}
How can I convert this buffer into a HGLOBAL?
I need to to this because the existing code requires a HGLOBAL to be passed and not a char *.
Thanks for your help.