I have been having problems trying to convert a BMP to a JPG without going through the step of saving it to disk.
I tried the example in thread222-1335999: How do I convert a BMP to JPG stream (that is now closed) but get errors depending on what version of the GDI library I used.
In the example,
GDI+ Type Library 1.31 (6/2/2003) gives "Sub or function not found" on the statement
Set myStream = CreateStreamOnHGlobal(b(0), True)
whereas,
GDI+ Type Library 1.05 (11/9/2003) gives "Cant find project or library" on the line
Private Function GetEncoderCLSID(ByVal strMimeType As String, outCLSID As CLSID) As Long
What did I do wrong?
I tried various manipulations of the CreateStreamOnHGlobal without success.
Maybe I have the wrong or conflicting references entered?
Any help would be greatly appreciated.
I tried the example in thread222-1335999: How do I convert a BMP to JPG stream (that is now closed) but get errors depending on what version of the GDI library I used.
In the example,
GDI+ Type Library 1.31 (6/2/2003) gives "Sub or function not found" on the statement
Set myStream = CreateStreamOnHGlobal(b(0), True)
whereas,
GDI+ Type Library 1.05 (11/9/2003) gives "Cant find project or library" on the line
Private Function GetEncoderCLSID(ByVal strMimeType As String, outCLSID As CLSID) As Long
What did I do wrong?
I tried various manipulations of the CreateStreamOnHGlobal without success.
Maybe I have the wrong or conflicting references entered?
Any help would be greatly appreciated.