473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Interoperability with .Net Framework

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
4 1630
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
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: j-integra_support | last post by:
Looking for Java/COM interoperability tools? Thousands of companies world-wide are using J-Integra for COM for interoperability between Java and Microsoft COM applications. J-Integra for COM is a...
3
by: sb | last post by:
I think streams are nice, but what do you do when you have to write to or, even worse, read from a FILE*, for example a UNIX stream? C++ streams can not be created from FILE*'s or have them...
1
by: louis | last post by:
Today I got the latest propaganda email from MSFT talking about XML and interoperability. It's been bothering me all day and while the notion of interoperability is good -- the ability to interact...
1
by: Ralph | last post by:
Does anybody know where could i find documentation of .NET interoperability with Office. I know it's through COM objects, but, where could i find documentation of those objects, their methods,...
1
by: Sai Kit Tong | last post by:
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C#...
3
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached...
0
by: j-integra_support | last post by:
Looking for Java/.NET/CORBA interoperability tools? Intrinsyc Software has just released the latest addition to its popular J-Integra Interoperability Suite... J-Integra Espresso! J-Integra...
0
by: Pradnya Patil | last post by:
Hi , I need to export some of the reports to MS EXCEL & MS WORD in a WEB APPLICATION.I also need to LOCK some of the Columns in EXCEL-sheet.Right now I need to run the Interoperability...
1
by: divya | last post by:
Hi, I made an assembly (class library project) in Dot net and wanted the assembly to have COM interoperability successfully got the assembly working with VB6 performing following steps: 1.Create...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.