ANSI c++ development in .net

N

Nishanth

My understanding is that ANSI c++ is a standard for c++, to which all
the compilers should adhere to. and the c++ code developed by following

these standards should be compatible with different c++ compilers for
different platforms.


My question is
- If we develop the c++ code in .net and compile the same, will the
executable run in any other windows platform without the .net framework

installed.
My thinking is no, as the code compiled in .net framework platform and
CLR will come into play.
But is there a way to compile the code in Visual studio .net without it

being converted into CLR and making it platform dependant.

I want to know this as someone suggested that we use the .net ide to
write and compile the ANSI c++ code.


Thanks
Nishanth
 
C

Cor Ligthert [MVP]

Nishanth,

Yes you can use C++ without managed code.

But that is not giving the same result as C++ with managed code classes.

It is exactly as you wrote a C++ compiler AFAIK with the additions which
were as well in Visual Studio 6.

Cor
 
N

Nishanth

Cor,
But the application created like this will it not require .net
framework installed in the machine. Even if the code that is developed
is syntactically follows the ANSI c++ standards.

Thanks
Nishanth
 
N

Nishanth

Cor,
But the application created like this will it not require .net
framework installed in the machine. Even if the code that is developed
is syntactically follows the ANSI c++ standards.

Thanks
Nishanth
 
P

pvdg42

Nishanth said:
Cor,
But the application created like this will it not require .net
framework installed in the machine. Even if the code that is developed
is syntactically follows the ANSI c++ standards.

Thanks
Nishanth
No, it will not. Dependence on the .NET Framework will depend on the project
type selected.
For example, if you choose a Win 32 or Win 32 Console application, or an
empty Console project, there is no association with the .NET Framework.
C++ in Visual Studio is unique in this regard, as opposed to C# and Visual
Basic.
 

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