adding CLR support to win32 project

S

Steve Richter

using VS2005 I create a classic WIN32 project. Of course it creates
without error, but when I change the project from "no CLR support" to
"pure MSIL CLR support" I get tons of create errors.

Is there a KB article that explains how to add CLR support to a WIN32 C
++ project?

thanks,

-Steve
 
C

Carl Daniel [VC++ MVP]

Steve said:
using VS2005 I create a classic WIN32 project. Of course it creates
without error, but when I change the project from "no CLR support" to
"pure MSIL CLR support" I get tons of create errors.

Is there a KB article that explains how to add CLR support to a WIN32
C ++ project?

If you really want to convert the whole thing to managed code, first,
translate it to C++. There's no support for compiling C to MSIL.

Typically though, you don't need to convert the entire project. What are
your goals in the project?

-cd
 
B

Ben Voigt

Steve Richter said:
using VS2005 I create a classic WIN32 project. Of course it creates
without error, but when I change the project from "no CLR support" to
"pure MSIL CLR support" I get tons of create errors.

Don't use /clr:pure option, it can prevent you from making native calls.
Use plain /clr instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top