First of all: is this possible?
I have a third-party dll that interacts with some hardware. It is written in MFC. I received (from dll providers) a sample Visual Studio 2010 solution in which there is only one project: an MFC application (.exe) that calls the corresponding DLL group. It works great.
When I try to use a third-party dll from my dll (which is simple C ++, without MFC, .NET), I can call its functions fine, but there is a catch: the MFC application example seems to be “canceled”, MessageProc, to capture certain messages. generated by a third party dll. And although the dll has a function called "RegisterFuncCallback" and I use it, my callback is never called.
So here is the problem: how can I capture these messages without creating an MFC application? (Is it possible?)
source
share