OK guys, here is the plan: a single file DLL that works on both – 32 bit systems and 64 bit systems.

OK guys, here is the plan: a single file DLL that works on both – 32 bit systems and 64 bit systems.

I have been looking around the web, following a lot of links. The general consensus is that it cannot be done. One of my co-workers says "There are ways to generate DLLs that work either 32 or 64 – but haven’t found out how to do that with Delphi."

Does anyone in this group know how to do this in Delphi XE3?

Thanks...Dan'l

Comments

  1. Well, we do not  have time for 'not trivial' solutions. 
    Upgrading to 64 bit now to avoid the rush when we can not find any more 32bit PCs.

    ReplyDelete
  2. Dan Statham I'm willing to bet the single dll solution your lead developer heard about was a .NET class library assembly and the consumers of this assembly were also .NET assemblies. You can consume .NET class libraries with Delphi if you use either http://managed-vcl.com/ or http://www.remobjects.com/hydra/. Only hydra has any documented support for x64 Delphi applications and is better supported in general but managed vcl is far less expensive. If you pay extra for the source you may be able to recompile it for x64 and fix any issues that crop up yourself. Or you could roll your own CLR host application functionality using Microsoft's unmanaged host api (nontrivial), which is how both of these products do their magic.

    Or you could go the COM route already mentioned.

    ReplyDelete

Post a Comment