life ideas

May 20, 2007

VS2005 win ce common migrate errors

Filed under: Uncategorized — manoftoday @ 4:01 am

1)

Error 1 fatal error C1189: #error :  Please use the /MD switch for _AFXDLL builds C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\afxver_.h 77 

You need to change Project | Properties | Configuration Properties | C++ | Code Generation | Runtime Library to have the value “Multi-threaded [Debug] Dll,” or change your MFC setting Project | Properties | Configuration Properties | General | Use Of MFC to have the value “Use MFC in a static library.”
The reason that you are seeing this error is that the defaults changed between eVC 4 and VS 2005, and using MFC from a DLL requires that the CRT also come out of a DLL. 

 

2)  

  • Compile error: Cannot open include filewceres.rc

    Right-click the project resource (RC) file, select View Code, and then comment out the following line:

    //#include "wceres.rc"
  • http://72.14.253.104/search?q=cache:N5i4RWjv2WgJ:msdn2.microsoft.com/en-us/library/ms228698(VS.80).aspx+cannot+open+include+file+%27wceres.rc%27.&hl=en&ct=clnk&cd=1&gl=us
  •  3)
      Error 1 error LNK2019: unresolved external symbol wWinMain referenced 
      in function wWinMainCRTStartup corelibc.lib 

     

     

    Go to Properties >> Linker >> Advanced and clear wWinMainCRTStartup
    from the “Entry Point” property. While you’re at it, clear anything
    you’ve got for “Base Address” as well.

    I ran into the same thing after converting an eVC 4.0 project to VS2K5.

     
    4)

    1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM.

    1> _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be done only for single-threaded apps.

    1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.


    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106485&SiteID=1
    Advertisements

    Leave a Comment »

    No comments yet.

    RSS feed for comments on this post. TrackBack URI

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    Create a free website or blog at WordPress.com.

    %d bloggers like this: