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();
}
>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