Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mfc smart device application for wince 6.0

12 views
Skip to first unread message

smart device application error@discussions.microsoft.com mfc smart device application error

unread,
May 21, 2010, 2:09:01 AM5/21/10
to
hi,
I am new to wince 6.0,I am building a mfc smart device application using
ProgWinCE_SDK provided by microsoft press book. it gives error like LNK2019
:unresolve externals
the error generated by line :
ApplicationPath.Format(_T("%s"),((Cmsrmnt2App *)AfxGetApp())->GetAppPath());

where Application Path is decleared as Cstring and GetAppPath() is also a
string decleared in header file
class Cmsrmnt2App : public CWinApp
{
public:
Cmsrmnt2App();
CString GetAppPath();
}

r_z_...@pen_fact.com

unread,
May 24, 2010, 2:23:43 PM5/24/10
to
On Thu, 20 May 2010 23:09:01 -0700, mfc smart device application error
<mfc smart device application er...@discussions.microsoft.com> wrote:

>hi,
> I am new to wince 6.0,I am building a mfc smart device application using
>ProgWinCE_SDK provided by microsoft press book.

This certainly sounds like a custom, or at least industrial, device
that really needs a special SDK.

> it gives error like LNK2019
>:unresolve externals

You probably see a list of functions here. These are functions your
linker couldn't find. So you will need to find out which library
(.lib) file(s) include(s) these functions, and will then need to add
it/them to the list of files the linker uses. For at least some
development IDEs, that would be in
Tools -> Options -> Directories -> Library files
You can often find the library needed for a function by looking up
help for that function.

>the error generated by line :
>ApplicationPath.Format(_T("%s"),((Cmsrmnt2App *)AfxGetApp())->GetAppPath());
>
>where Application Path is decleared as Cstring and GetAppPath() is also a
>string decleared in header file
>class Cmsrmnt2App : public CWinApp
>{
>public:
>Cmsrmnt2App();
>CString GetAppPath();
>}

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, MVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com

0 new messages