Adding an out-of-process COM wrapper to a DLL
Converting a Project Type from In-Process to Out-of-Process
This option can work if you meet the followingrequirements:
You have a 32-bit in-process librarythat you want to use in your 64-bitapplication.
You have the associated source code.
You don’t have the time to perform amigration to 64-bit.To convert your project from in-process to out-of-process, we’ll also make the followingassumptions:1.
The library currently compiles with Microsoft Visual Studio
The project is of type ATL (Active Template Library code).To convert your project, follow these steps:1.
Create a new project of the same type. You can use the same name, or you canadd a qualifier to distinguish the new library. For example, myLibrary couldbecome myLibraryOutOfProc.2.
Change the server type from Dynamic-link library (DLL) to Executable (EXE) onthe project settings screen (see Figure 1). In doing so, you will create a projectthat is the same type as your previous one, but is an out-of-process library.
Figure 1 Project settings screen
Move all of the functionality from the in-process library to your newproject. This step involves moving all the source code and header filescontained in your project.
While this is not a hard step, it might be tedious, depending on thesize of your project.
64-bit Insider NewsletterVolume 1, Issue 7Page 3/8