473,888 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interoperabilit y 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 interoperabilit y or just give me a tutorial
link?
greetz!
Jul 22 '05 #1
4 1669
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 interoperabilit y 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.microsof t.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.l earn.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.microsof t.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.microsof t.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.l earn.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.go ogle.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 interoperabilit y 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 interoperabilit y 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
1910
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 pure Java implementation of the DCOM protocol, making it several times faster than Web Services. J-Integra for COM Features: * Access J2EE components from VB, C++, ASPs, etc... * Access COM components from EJBs, Servlets, JSPs, Applets, etc......
3
2296
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 attached. Today, a C++ programmer has to decide beforehand whether he wants to use C or C++ I/O. Suppose you choose C++ streams and write all of the "operator>>" code for your objects. If you later decide to read the same objects from a UNIX pipe,...
1
1383
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 with disparate heterogeneous platforms and protocols -- what really bugs me is the choice of words. Interoperability has 8 syllables, only 6 syllables shy of "Supercalifragilisticexpialidocious". Plus Inter implies movement between objects. ...
1
1344
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, parameters or arguments, properties, etc.. I'm interested in learning about interoperability with Excel and Word (Office 2000, XP and 2003) Thanks in advance Rafael
1
2533
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# implementations. Originally, I have the impression that C# should be a clear winner. I started with Java and using the guideline from the book "Java Native Interface". Though complex, the book provide details of the practical implementation and potential...
3
2392
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 response). My first reply directed me to source code migration but I didn't have the source code. The second reply mentioned about .NET interoperability (PInvoke I think) but I MENTIONED THAT I COULDN'T FIND ANY DOCUMENTATION FROM MSDN LIBRARY BASED ON...
0
1082
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 Espresso is a true CORBA solution for the Microsoft .NET framework. This Object Request Broker (ORB) has been written in C# and connects Java and CORBA with the .NET world. J-Integra Espresso has been developed entirely as managed code and can therefore...
0
1650
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 setup on the machine where the software will run.The machine
1
1579
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 a strong name key file using sn tool. 2.In the Class Library Project (I am using VS 2005) 2.1 Select "Register For COM" in the Project Properties 2.2 Inside assemblyinfo.cs set COMVISIBLE to True 2.3 Assign strong name key file to the assembly...
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10886
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9597
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5824
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6014
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4642
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3252
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.