bgd.dll on Windows 64 bits
| From: | N Cosmin | Date: | Thu, 07 Aug 2008 17:35:54 +0000 |
| Subject: | bgd.dll on Windows 64 bits | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-456@lists.php.net to get a copy of this message | ||
Hi there,
Recently I've downloaded the GD Library (bgd.dll 2.0.35 version) and used in my ASP.NET 3.5
project. On my personal computer I have installed Windows Vista Ultimate 32 bits and everything
works OK. My project is sucesfully using this library along with other two libraries GD-Import.dll
and GD-Sharp.dll that i have downloaded from http://gd-sharp.sourceforge.net/.
The problem is that the hosting server is using Windows Server 2008 64 bits edition. When I try to
use the GD Library an error occurs:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format.
(Exception from HRESULT: 0x8007000B)
at Ntx.GD.GDImport.gdImageCreate(Int32 width, Int32 height)
at Ntx.GD.GD..ctor(Int32 width, Int32 height, Boolean trueColor)
at CAPTHCA.createCAPTCHAImage(Int32 _width, Int32 _height, Double _noiseDotsDensity, Double
_noiseLinesDensity, String _code)
at CAPTHCA.getCaptcha(String& _c)
at inscriere.generateCaptcha()
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
From the error message it is clearly that the error occurs when the application is trying to acccess
the GDImport.gdImageCreate(Int32 width, Int32 height) function from bgd.dll library.
My question is: is there a library release for 64 bits Windows ? If not, how can I use this library
(bgd.dll) with a 64 bits Windows operating system ?
Sorry for my poor english and hope to help me solving this problem.
Thanks.
Cosmin Nicula