Interoperability with .Net Framework

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frederik Kesting

    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 interoperabilit y or just give me a tutorial
    link?
    greetz!
  • Jack Klein

    #2
    Re: Interoperabilit y with .Net Framework

    On 1 Feb 2004 12:22:03 -0800, frederikkesting @web.de (Frederik
    Kesting) wrote in comp.lang.c++:
    [color=blue]
    > Hi!
    > I heard about the possibilty of using different languages for one
    > project whith the .Net Framework. Is it f.e. possible to include[/color]

    What is the possibility that questions about the .Net framework and
    about other languages are completely off-topic here?
    [color=blue]
    > 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![/color]

    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++

    Comment

    • Frederik Kesting

      #3
      Re: Interoperabilit y with .Net Framework

      > The only thing that manages C++ here is the ANSI/ISO/IEC International[color=blue]
      > 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.[/color]
      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 ;)

      [color=blue]
      > There are Microsoft specific newsgroups in the news:microsoft. public.*
      > family on the server msnews.microsof t.com.[/color]
      Thanx, I'll watch for help in that newsgroup.

      Comment

      • Jack Klein

        #4
        Re: Interoperabilit y with .Net Framework

        On 2 Feb 2004 04:51:08 -0800, frederikkesting @web.de (Frederik
        Kesting) wrote in comp.lang.c++:
        [color=blue][color=green]
        > > 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.[/color]
        > 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 ;)[/color]

        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.
        [color=blue][color=green]
        > > There are Microsoft specific newsgroups in the news:microsoft. public.*
        > > family on the server msnews.microsof t.com.[/color]
        > Thanx, I'll watch for help in that newsgroup.[/color]

        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++

        Comment

        • Cornel Barna

          #5
          Re: Interoperabilit y with .Net Framework

          frederikkesting @web.de (Frederik Kesting) wrote in message news:<a6d940ee. 0402011222.5012 a1b7@posting.go ogle.com>...[color=blue]
          > 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![/color]

          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!!

          Comment

          Working...