Recent

Author Topic: Compiling DLL for 64 bit processor ...  (Read 5872 times)

AlbertoB

  • Newbie
  • Posts: 4
Compiling DLL for 64 bit processor ...
« on: December 14, 2010, 03:58:23 pm »
Hello,
I'm porting a Delphi 32 project to Lazarus 64 bit for eployng on a Win 2008 Server 64 bit.
The problem is that in a DLL of the origina Delphi 32 project i use the TIBDatabase components for access to a Interbase/Firebird database and i don't find the same components for Lazarus 64 bit.
What can i do ?
Is there any work-around ?

Thank you
Alberto

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2514
Re: Compiling DLL for 64 bit processor ...
« Reply #1 on: December 14, 2010, 05:09:26 pm »
The easy solution: use the 32bit app. No need to compile a 64bit app for win2008/64. It still runs 32 bit apps.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

AlbertoB

  • Newbie
  • Posts: 4
Re: Compiling DLL for 64 bit processor ...
« Reply #2 on: December 14, 2010, 05:32:13 pm »
Hello,
i can't use the 32 bit version because i use a lot of Stored procedure and if i try to excute them i obtain this errore message
"Invalid request BLR at offset 2019.Function .... is not defined. Module name or entrypoint could not be found".
So i think that there is a incompatibility betweeen my 32 bit DLL and the 64 bit processor.

Bye and thank you

Laksen

  • Hero Member
  • *****
  • Posts: 658
    • J-Software
Re: Compiling DLL for 64 bit processor ...
« Reply #3 on: December 14, 2010, 07:29:07 pm »
You can't use a 32bit dll and a 64bit application together. You need both for the same platform

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2514
Re: Compiling DLL for 64 bit processor ...
« Reply #4 on: December 17, 2010, 02:08:17 am »
Hello,
i can't use the 32 bit version because i use a lot of Stored procedure and if i try to excute them i obtain this errore message

Stored procedures aren't part of your dll, so that sholdn't matter.

Quote
"Invalid request BLR at offset 2019.Function .... is not defined. Module name or entrypoint could not be found".
So i think that there is a incompatibility betweeen my 32 bit DLL and the 64 bit processor.
If the app ran without problem on a 32bit platform, it should do to on a 64 bit windows. A 32bit app will never load a 64 bit dll, so than can't be a problem.

What dll's are you trying to load ?
are you doing any registry access ?

(my software at work is written in delphi6 with database and network access, runs without problems on win2008R2 64bit, so I see no reasion why it wouldn't work for you)
« Last Edit: December 17, 2010, 02:11:39 am by Marc »
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018