Page 1 of 2

PocketHAL / MFC example?

PostPosted: Nov 18, 2004 @ 1:16am
by clintsinger
I have a full screen application (windowed on the desktop) that is required to be done in MFC. Does anyone have an example of how to override the default drawing capabilities of MFC and replace them with a PocketHAL implementation?

Cheers,
Clint

PostPosted: Nov 18, 2004 @ 2:02am
by Kzinti
Why do you want to use MFC for a fullscreen app? That will only add overhead to your app.

PostPosted: Nov 18, 2004 @ 9:13am
by Johan

PostPosted: Nov 18, 2004 @ 10:41am
by Pejo Software - Per

PostPosted: Nov 18, 2004 @ 5:53pm
by Kzinti

PostPosted: Nov 18, 2004 @ 9:25pm
by Johan

PostPosted: Nov 18, 2004 @ 10:16pm
by Pejo Software - Per

PostPosted: Nov 18, 2004 @ 10:35pm
by Johan

PostPosted: Nov 25, 2004 @ 2:15am
by Clint Singer

PostPosted: Nov 25, 2004 @ 2:47am
by Kzinti

PostPosted: Nov 26, 2004 @ 12:16am
by Guest

PostPosted: Nov 26, 2004 @ 1:14am
by Kzinti

Linking problem

PostPosted: Feb 20, 2005 @ 6:18am
by clintsinger
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:

Linking...
libcmt.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0.obj) : error LNK2005: __amsg_exit already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCR71D.dll)
libcmt.lib(crt0dat.obj) : warning LNK4006: _exit already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
libcmt.lib(crt0dat.obj) : warning LNK4006: __exit already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
libcmt.lib(crt0dat.obj) : warning LNK4006: __cexit already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
libcmt.lib(crt0dat.obj) : warning LNK4006: __c_exit already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0.obj) : warning LNK4006: __amsg_exit already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
libcmt.lib(winxfltr.obj) : warning LNK4006: __XcptFilter already defined in msvcrtd.lib(MSVCR71D.dll); second definition ignored
Creating library ../../../Bin/x86/Debug/MDUd.lib and object ../../../Bin/x86/Debug/MDUd.exp
LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
msvcrtd.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
libcmt.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
../../../Bin/x86/Debug/MDUd.exe : fatal error LNK1120: 1 unresolved externals

The application I am writing has the UI portion borrowed from the fireworks sample so that there is no requirement on MFC to do the drawing, event processing etc, but I still need MFC because the rest of the application uses it extensively.

Is there some way to get a pockethal library that compiles nicely with MFC?

Cheers,
Clint Singer

PostPosted: Feb 20, 2005 @ 6:27am
by clintsinger
Hi Thierry,

I thought I'd mention that I am using PocketHAL .8 Alpha 3 on Windows XP for the MFC test. If that helps at all. The goal is the ability to compile the same application for the desktop and windows ce.

Cheers,
Clint Singer

PostPosted: Feb 22, 2005 @ 10:09am
by allan175