Hi Clint,
I got PF/PH v8.1 to link with MFC by commenting out the following line in PocketFrog.h:
#pragma comment( lib, "gdi32.lib" )
This caused the program to link correctly.
I am using this option for a Desktop application. Like so many other people, I am working on a game; so I am using MFC and PF/PH to create a game builder on the desktop. Everything works, accept that the PF display will not draw unless it has focus. I have traced this down to GetDisplay not returning a valid pointer unless the window has focus.
Thiery, is there a way for PH to return a valid pointer when running on the desktop but the PF/PH window does not have focus?
thanks.
clintsinger wrote:Hi Thierry,
I made an attempt to try PocketHAL with MFC and ran into a linking problem. It seems that PocketHAL has linked to a couple libraries that MFC is trying to link to as well and this is causing a conflict. The errors are as follows:
...