CWinFormsView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MLM450@hotmail.com

    #1

    CWinFormsView

    I am trying to use CWinFormsView. I have followed the instructions in
    the Microsoft article on changing a CView based class to use it.
    However, when I compile I get this message:

    fatal error C1189: #error : MFC WinForms support requires /clr
    (doesn't support oldSyntax)

    But I have the CLR switch set to "Common Language Runtime Support
    (/clr)" so what's the problem?

  • William DePalo [MVP VC++]

    #2
    Re: CWinFormsView

    <MLM450@hotmail .comwrote in message
    news:1159462994 .552710.26550@e 3g2000cwe.googl egroups.com...
    >I am trying to use CWinFormsView. I have followed the instructions in
    the Microsoft article on changing a CView based class to use it.
    However, when I compile I get this message:
    >
    fatal error C1189: #error : MFC WinForms support requires /clr
    (doesn't support oldSyntax)
    >
    But I have the CLR switch set to "Common Language Runtime Support
    (/clr)" so what's the problem?
    Which compiler are you using? The quip about the non-support of the "old"
    syntax means that you must use VS2005 rather than VS2003 or VS2002.

    Regards,
    Will


    Comment

    Working...