locked
CLR components cannot be added to a project using old Syntax C++? RRS feed

  • Question

  • Hi everybody,

     

    I am using somebody else's code for USB intefacing which was devloped in older version of visual studio. I compiled the programme and it compiles fine but when i try to add window form to the project it pops up with a message box saying

     

    "CLR components cannot be added to a project using old syntax C++. Please convert the project to use the new syntax."

     

    I am not sure how to convert the project to new syntax. I check the MSDN developer website and tried changing all the __gc to ref and all other recommended alterations but it still won't let me add windows form to the project.

     

    Can anybody please suggest a solution as I desperatley need this to be working as soon as possible.

     

    Regards

    Ibtasam

     

    Thanks in advance for helping.

    Friday, March 21, 2008 1:34 AM

Answers

  •  

    I don't see any mention of which version of which compiler you are

    currently using. If VC++ 2008, what is the setting under Project

    Properties, Configuration Properties, General: "Common Language

    Runtime support"? If it is: "Old Syntax" try changing it.

     

    - Wayne

     

     

    Friday, March 21, 2008 2:50 AM