I have a huge MFC MDI application that draws on its scrollable view area using device context. This application uses a 3rd party library to do some additional drawing in the same view area. It works by passing the DC (Device Context) of the view area to this 3rd party library (dll) and then the DLL does the additional drawing which is pretty complex.
However, we are converting our whole application to 64 bit and the problem is that we do not have 64 bit version of this 3rd party library. Which leaves us with one option only and that is to move this 3rd party library to a separate process and then make out-of-process calls between our main Application and this new Process hosting this 3rd party library.
But now, how do we do cross-process drawing? Is there any way to do this stuff using plain GDI or MFC?
dllhost
as a surrogate to access the 32bit DLL through COM. I haven't actually done this myself or I would make it an answer. I do know others that have used this approach and they've been happy with the results. – Captain Obvlious