"Bart Simpson" <ea*********@springfield.com> wrote in message
news:dv**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com
I am writing a communications library which makes extensive use of the
STL and templates in general. I am using VC7 to compile because of
alledged better support for templates etc.
However, I have not been able to get a simple question answered. Will
my C++ code be compiled to IL? (I hope not).
Not unless you specifically ask for it.
If I am not convinced that VC7 is really generating native binaries,
Build a simple "Hello, world!" console app, run it on a machine without
..NET installed. If this does not convince you, I don't know what will.
Try to open the executable in MSIL Disassembler (ILDASM) tool. If it
opens, it's a .NET assembly. If there's an error, it's a native
executable.
is there anyway I can use STL (loki code etc) from VC6?
This question does not make any sense to me. STL is almost completely
implemented in header files. Wherever you take it from, it's in source
code form and gets compiled by whatever compiler you are building the
project with. If you don't trust said compiler, I'm not sure how getting
STL headers from elsewhere would help.
Loki is a template library completely unrelated to STL. It's also
distributed in source form, so the same argument applies. Besides, Loki
does not compile on VC6 so it's not clear what you mean by "loki code
from VC6".
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925