This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketHAL / MFC example?


PocketHAL / MFC example?

Postby clintsinger » Nov 18, 2004 @ 1:16am

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
clintsinger
pm Member
 
Posts: 15
Joined: Nov 18, 2004 @ 1:15am


Postby Kzinti » Nov 18, 2004 @ 2:02am

Why do you want to use MFC for a fullscreen app? That will only add overhead to your app.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Johan » Nov 18, 2004 @ 9:13am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Pejo Software - Per » Nov 18, 2004 @ 10:41am

Last edited by Pejo Software - Per on Nov 18, 2004 @ 10:03pm, edited 2 times in total.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Kzinti » Nov 18, 2004 @ 5:53pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Johan » Nov 18, 2004 @ 9:25pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Pejo Software - Per » Nov 18, 2004 @ 10:16pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Johan » Nov 18, 2004 @ 10:35pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Clint Singer » Nov 25, 2004 @ 2:15am

Clint Singer
 


Postby Kzinti » Nov 25, 2004 @ 2:47am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Guest » Nov 26, 2004 @ 12:16am

Guest
 


Postby Kzinti » Nov 26, 2004 @ 1:14am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Linking problem

Postby clintsinger » Feb 20, 2005 @ 6:18am

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
clintsinger
pm Member
 
Posts: 15
Joined: Nov 18, 2004 @ 1:15am


Postby clintsinger » Feb 20, 2005 @ 6:27am

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
clintsinger
pm Member
 
Posts: 15
Joined: Nov 18, 2004 @ 1:15am


Postby allan175 » Feb 22, 2005 @ 10:09am

--------------
Allan
allan175
pm Member
 
Posts: 3
Joined: Sep 13, 2004 @ 10:03am
Location: Manchester, England


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron