Re: VS2005 compatibility



On Fri, 1 Sep 2006 16:22:01 -0700, Long
<Long@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I?m using Visual Studio 2005 C++ to write CE applications. Most of the

What SDK are you using?


simple programs are running OK. However, I find some my projects are
compiled successfully, but cannot run in the CE devices. For example, one of

What platform is on the devices?


my projects uses classes. I cannot use the new keyword to create an object
pointer, CMyClass* p = new CMyClass. Another one cannot use standard
template map, which is as simply as following,

#include "stdafx.h"
#include <windows.h>
#include <commctrl.h>
#include <map>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
std::map<int, int> list;
list[0] = 0;
list[1] = 1;

return 0;
}

The compilation is no problem. It just cannot run on the target. Does
anyone have any idea?

A bit more details about the symptoms might help. What sort of error
messages do you see?

Are you using MFC? If so, are you sure the version of MFC you're
targeting matches the version of MFC on the devices?


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

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



Relevant Pages

  • Re: Mem leak when implement Singleton pattern on CWinApp derived class
    ... see is a misguided attempt to follow mindlessly some abstract idea about design patterns, ... violating any number of assumptions MFC makes about its environment. ... MFC will there EVER be an attempt to create more than one object instance for the CWinApp ... The destructor on a pointer ...
    (microsoft.public.vc.mfc)
  • Re: CDatabase object access violation on DLL Exit
    ... POINTER PASSED TO 'Free'? ... Also, if this is an MFC method, you would need to report the file, line, and VS version ... I have built a regular MFC DLL using shared MFC DLL, ... When a "Free" method gets an AV inside of a destructor, ...
    (microsoft.public.vc.mfc)
  • Re: Works on XP, Crash on 98
    ... I tested out the new mfc71.pdb file by passing a NULL DC pointer to ... The problem is, I'm not using any maps in my code, so it must be ... I searched the mfc src folder for CMapPtrToPtr ... as part of my test code in the thread checks various GDI ...
    (microsoft.public.vc.mfc)
  • Re: Basic question regarding checkboxes
    ... It appears that your real problem is not understanding that the above call is to a C++ member function. ... Your error message shows you are not calling the MFC version of CheckDlgButton but attempting to call the API version. ... The MFC version is a member function of the dialog and it "knows" the HWND of the dialog. ... If you are making this call in some code module that is not part of the dialog then first you have to call that module, passing it the 'this' pointer from the dialog object. ...
    (microsoft.public.vc.mfc)
  • Re: Multithreading and accessing window pointer from thread
    ... Sharing a "window" proper and sharing a MFC ... pass the pointer to a CWnd from one thread to another, ... The handle maps are used to prevent creation of temporary objects. ... example, if you call GetDlgItemfor a window control, you get back ...
    (microsoft.public.vc.mfc)

Loading