GDIPlus import library for 64 bit
Posted: Sun Jan 11, 2009 12:51 am
I was trying to recompile a program under vista 64 with PB 4.3 x64, I wrote the code thinking about portability to x64 so I was expecting a smooth ride. :roll:
Anyway, in my program I use the import library gdiplus.lib someone linked in the pb forum (don't recall exactly where at the moment, sorry).
In my code I'm using it in the usual way:
But it won't compile under Vista 64 because (having the gdiplus.lib copied from the 32 bit version) polink give errors for the above functions.
Where can I find a 64 bit version of the above import lib ?
Or how can I build it from the 64 bit dll in Vista ? Under win32 there are some tools like implib or the like, but I don't have the foggiest idea of what to use for 64 bits.
Thanks !
Anyway, in my program I use the import library gdiplus.lib someone linked in the pb forum (don't recall exactly where at the moment, sorry).
In my code I'm using it in the usual way:
Code: Select all
Import "gdiplus.lib" ;{ IMPORTS
GdiplusStartup (*token, *input.GdiplusStartupInput, *output.GdiplusStartupOutput)
GdiplusShutdown (token)
GdipGetImageWidth (image, *width)
GdipGetImageHeight (image, *height)
GdipGetImagePixelFormat (image, *format)
GdipCreateBitmapFromFile (filename.p-unicode, *image)
GdipGetImageGraphicsContext (image, *graphics)
GdipCreateFromHDC (hDC, *gfx)
GdipDrawImageRectI (gfx, image, x, y, width, height)
GdipDeleteGraphics (gfx)
GdipDisposeImage (image)
GdipSetSmoothingMode(gfx, mode)
GdipSetInterpolationMode(gfx, mode)
GdipSaveImageToFile (image, filename.p-unicode, *clsidEncoder.CLSID, *encoderParams)
GdipCreateBitmapFromHBITMAP (image, palette, *image)
GdipGetImageEncodersSize (*numEncoders, *size)
GdipGetImageEncoders (numEncoders, size, *encoders.ImageCodecInfo)
GdipGetImageThumbnail (image, thumbWidth, thumbHeight, *thumbImage, *callback, *callbackData)
GdipSaveImageToStream (image, stream.IStream, *clsidEncoder.CLSID, *encoderParams)
EndImport ;}
Where can I find a 64 bit version of the above import lib ?
Or how can I build it from the 64 bit dll in Vista ? Under win32 there are some tools like implib or the like, but I don't have the foggiest idea of what to use for 64 bits.
Thanks !