title: How to port a MFC application to Windows Embedded Compact 7?
body: <p>I'm trying to port a MFC application to windows embedded embedded 7. I added the MFC application as a sub project to the OS design I created by using platform builder in Visual Studio 2008. But i got the following errors.</p>
  
  <p>Fatal Error: C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\atlmfc\include\atlconv.h(695) : error C2039: 'lstrlenW' : is not a member of 'ATL'
   NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages\VcBuild.exe"' : return code '0x1'</p>
  
  <p>Is there a way to solve this issue ?? </p>
  
  <p>After further search i found a blog stating that...</p>
  
  <p>MFC and ATL are supported. However, there is currently a Microsoft bug which causes problems running such application which make use of MFC or ATL on a Windows CE 7 multi core system. To avoid problems, you need to configure the linker for Windows CE 6.
  Go to "Project -> Properties"
  Now choose: Configuration "Properties -> Linker -> Commandline"
  If there is already a "/Subsystem" parameter delete it
  Add the following string: /subsystem:windowsce,6.00</p>
  
  <p>But the error persists even after following that...</p>
  
  <p>Please give your suggestions to resolve this issue..</p>
  
  <p>Thanks in advance.</p>