Christian Fröschlin
11/29/2007 4:38:00 PM
> What about the interface guids and progids? If I have one project using
> IntPtr as the method parameter but with the same progids and guids used
> throughout, would regsvr32 sort that out correctly if I built for
> 32-bit and 64-bit then registered both?
You can use the same ids, as they will be registered in separate
portions of the registry and only the appropriate one is visible to
a process. In fact, you *must* use the same IDs because VS 2005 is
itself a 32-bit process and will only "see" the 32-bit COM DLLs.
Thus, a programmer using your DLL will add a reference to the
32-bit version, but it resolves to the 64-bit DLL at run time.