views:

375

answers:

4

i.e., a web browser client would be written in C++ !!!

+1  A: 

Use the /clr compile option

Mike Thompson
+4  A: 

This was originally known as Managed C++, but as Josh commented, it has been superceded by C++/CLI.

bk1e
Managed C++ is no longer maintained, try C++/CLI
Eclipse
A: 

Sure, Visual Studio can compile "managed" C++. I'm not sure I understand your "web browser client" reference though; do you mean you want to compile your C++ to something that will run with Silverlight?

Bruce
yeah basically i want to split an existing desktop app written in C++ into a client and server, where the client can run on desktop OR browser! thanks!
Paul
Its not possible to run the same binary on both desktop and silverlight - although the APIs are in large part compatible, the dependent libraries themselves are different. So you can have the same source code, but not the same binaries.
Bruce
+5  A: 

There are a two choices. Managed C++ (/clr:oldSyntax, no longer maintained) or C++/CLI (definitely maintained). You'll want to use /clr:safe for in-browser software, because you wnat the browser to be able to verify it.

MSalters