Search code examples
delphi32bit-64bitdelphi-xe2typelib

How to transfer a 32-bit typelib to a 64-bit project (whilst preventing nameclashes)


I've got a type library in a 32-bit Excel add-in app.

I need to translate the whole app to 64-bit.

enter image description here

I can't just copy paste the typelib, because the GUID's will clash with the already installed 32-bit app, ditto for the naming.
What's the best way to translate the application to 64 bit in a way that avoids name-clashes?

Or is there some mechanism that solves the name- and GUID-clashes automatically that I don't know about?


Solution

  • 32 and 64 bit COM servers are registered in different registry views. So the 32 bit processes and 64 bit processes exist in disjoint GUID namespaces. In other words you use the same GUID for both 32 and 64 bit versions. The registry redirector does the rest.