By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,296 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,296 IT Pros & Developers. It's quick & easy.

Interoperability with .Net Framework

P: n/a
Hi!
I heard about the possibilty of using different languages for one
project whith the .Net Framework. Is it f.e. possible to include
Managed C++ code into a VB.Net project without changing syntax? Could
someone tell me more about interoperability or just give me a tutorial
link?
greetz!
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 1 Feb 2004 12:22:03 -0800, fr*************@web.de (Frederik
Kesting) wrote in comp.lang.c++:
Hi!
I heard about the possibilty of using different languages for one
project whith the .Net Framework. Is it f.e. possible to include
What is the possibility that questions about the .Net framework and
about other languages are completely off-topic here?
Managed C++ code into a VB.Net project without changing syntax? Could
someone tell me more about interoperability or just give me a tutorial
link?
greetz!


The only thing that manages C++ here is the ANSI/ISO/IEC International
Standard, which does not mention "VB" or ".Net". These things have
nothing at all to do with the C++ language, they are all Microsoft
specific non-standard extensions.

There are Microsoft specific newsgroups in the news:microsoft.public.*
family on the server msnews.microsoft.com.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2

P: n/a
> The only thing that manages C++ here is the ANSI/ISO/IEC International
Standard, which does not mention "VB" or ".Net". These things have
nothing at all to do with the C++ language, they are all Microsoft
specific non-standard extensions. Even if they don't have standart-extension, they have a lot in common
with the ANSI/ISO/IEC International Standart. I know that this is a
newbie-question and of couse an off-topic, but I also thought some of
you are able to help ;)

There are Microsoft specific newsgroups in the news:microsoft.public.*
family on the server msnews.microsoft.com.

Thanx, I'll watch for help in that newsgroup.
Jul 22 '05 #3

P: n/a
On 2 Feb 2004 04:51:08 -0800, fr*************@web.de (Frederik
Kesting) wrote in comp.lang.c++:
The only thing that manages C++ here is the ANSI/ISO/IEC International
Standard, which does not mention "VB" or ".Net". These things have
nothing at all to do with the C++ language, they are all Microsoft
specific non-standard extensions.

Even if they don't have standart-extension, they have a lot in common
with the ANSI/ISO/IEC International Standart. I know that this is a
newbie-question and of couse an off-topic, but I also thought some of
you are able to help ;)


I was able to help. I explained, politely, why your question was
off-topic here, and I pointed out exactly where you could get good
answers to your question, below.
There are Microsoft specific newsgroups in the news:microsoft.public.*
family on the server msnews.microsoft.com.

Thanx, I'll watch for help in that newsgroup.


Good luck to you, then.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #4

P: n/a
fr*************@web.de (Frederik Kesting) wrote in message news:<a6**************************@posting.google. com>...
Hi!
I heard about the possibilty of using different languages for one
project whith the .Net Framework. Is it f.e. possible to include
Managed C++ code into a VB.Net project without changing syntax? Could
someone tell me more about interoperability or just give me a tutorial
link?
greetz!


The answer is short: NO.
Your managed C++ code must be compiled with a C++ compiler (that
creates managed code) and your VB.Net code must be compiled with a
VB.Net compiler.

The interoperability refer to something else: when you compile in .Net
you don't get native code (like you do with standard C++), you get
managed code in MSIL language (assemblies; there is more, but just
i'll keep it simple). Most of the times you see that assembly like a
dll or exe file. These are not normal binary files. You can include
these files in you project and use them.

For instance: you created a class, MyClass, in Managed C++. You
compile it and get a file, a.dll. Then you wanna use MyClass in one of
your VB.Net projects. You just use it like any other class written in
VB.Net (VB.Net syntax), even if the class is written in C++ managed,
with a different syntax.

and to get all working you just compile your vb.net project
referencing a.dll (the file that have MyClass implementation) - this
is done by using /r:a.dll compiler option. You don't have to do
anything else. just use the corect namespaces and refer the correct
dll.

The code written in a language must be compiled with the proper
compiler!!
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.