Expert System in C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Val Paliy

    Expert System in C#

    Hello, everyone --

    I have in mind an expert system, but the problem is I program in C#, and my
    partner - in C++. If she writes an algorithm in C++, can VS 2008 Express
    Edition convert it to C# afterwards? I want the application to be
    cross-platform, that's why C# was chosen as the main language.

    Appreciate any feedback!

    Thank you!

  • xcal

    #2
    Re: Expert System in C#


    try Sharpdevelop, its free also, I have not it at this moment, but I believe
    it can help you, by creating a COM components for your C# components
    because Sharpdevelop doesnt work, as I remember, with C++.

    hope this helps, Carlos



    aliy" <valpaliy@windo wslive.comwrote in message
    news:09294720-6AB4-4E71-B354-6B2D8169FC48@mi crosoft.com...
    Hello, everyone --
    >
    I have in mind an expert system, but the problem is I program in C#, and
    my
    partner - in C++. If she writes an algorithm in C++, can VS 2008 Express
    Edition convert it to C# afterwards? I want the application to be
    cross-platform, that's why C# was chosen as the main language.
    >
    Appreciate any feedback!
    >
    Thank you!
    >



    Comment

    • xcal

      #3
      Re: Expert System in C#

      also, she could try to use her own tools to create her COM components,

      Carlos.

      "xcal" <a@a.comwrote in message
      news:eB%23zlYwJ JHA.3680@TK2MSF TNGP04.phx.gbl. ..
      >
      try Sharpdevelop, its free also, I have not it at this moment, but I
      believe
      it can help you, by creating a COM components for your C# components
      because Sharpdevelop doesnt work, as I remember, with C++.
      >
      hope this helps, Carlos
      >
      >
      >
      aliy" <valpaliy@windo wslive.comwrote in message
      news:09294720-6AB4-4E71-B354-6B2D8169FC48@mi crosoft.com...
      Hello, everyone --

      I have in mind an expert system, but the problem is I program in C#, and
      my
      partner - in C++. If she writes an algorithm in C++, can VS 2008 Express
      Edition convert it to C# afterwards? I want the application to be
      cross-platform, that's why C# was chosen as the main language.

      Appreciate any feedback!

      Thank you!
      >
      >
      >
      >

      Comment

      • Peter Duniho

        #4
        Re: Expert System in C#

        On Sat, 04 Oct 2008 21:21:41 -0700, Val Paliy <valpaliy@windo wslive.com>
        wrote:
        Hello, everyone --
        >
        I have in mind an expert system, but the problem is I program in C#, and
        my
        partner - in C++. If she writes an algorithm in C++, can VS 2008 Express
        Edition convert it to C# afterwards? I want the application to be
        cross-platform, that's why C# was chosen as the main language.
        Then perhaps your partner should simply learn C#. For someone already
        experienced in C++, and especially with someone on the team who already
        knows C#, the transition should be relatively easy. This is especially
        true if she is focusing mainly on algorithm implementations as opposed to
        needing to rely on some platform API (e.g. Windows API vs .NET Framework).

        That would probably be the most straightforward , maintainable approach.
        And your partner would have the opportunity to improve her programming
        language knowledge.

        Barring that, is she able to use Visual Studio? Or is she using some
        other environment? If she can use Visual Studio, then she can write a
        managed DLL in C++. She'll have to learn the basic C++/CLI syntax so that
        she's declaring and using managed types. But otherwise, she can leverage
        her existing knowledge of C++ in that way.

        If she is only able to use some other development environment, or for
        whatever reason is unwilling to learn _anything_ new about managed code,
        then she can compile her code as a DLL and then your code can use p/invoke
        to call it.

        She could, as Carlos suggests, build COM components and then you can use
        the managed COM stuff to access them, but that seems a bit like overkill
        to me. I think it would make some things easier, but it would introduce a
        host of additional complexities that you might not want to have to deal
        with or learn about.

        Personally, I'd try to convince her to just get on board with C#. She can
        still use C++ for her other work; it's not like you're asking her to
        convert religion or something like that. :)

        Pete

        Comment

        • Val Paliy

          #5
          Re: Expert System in C#

          Thank you, Carlos!

          "xcal" <a@a.comÓÏÏÂÝÉÌ (Á) × ÎÏ×ÏÓÔÑÈ
          ÓÌÅÄÕÀÝÅÅ:es6K# $wJJHA.6016@TK2 MSFTNGP02.phx.g bl...
          also, she could try to use her own tools to create her COM components,
          >
          Carlos.
          >
          "xcal" <a@a.comwrote in message
          news:eB%23zlYwJ JHA.3680@TK2MSF TNGP04.phx.gbl. ..
          >>
          >try Sharpdevelop, its free also, I have not it at this moment, but I
          believe
          >it can help you, by creating a COM components for your C# components
          >because Sharpdevelop doesnt work, as I remember, with C++.
          >>
          >hope this helps, Carlos
          >>
          >>
          >>
          >aliy" <valpaliy@windo wslive.comwrote in message
          >news:0929472 0-6AB4-4E71-B354-6B2D8169FC48@mi crosoft.com...
          Hello, everyone --
          >
          I have in mind an expert system, but the problem is I program in C#,
          and
          >my
          partner - in C++. If she writes an algorithm in C++, can VS 2008
          Express
          Edition convert it to C# afterwards? I want the application to be
          cross-platform, that's why C# was chosen as the main language.
          >
          Appreciate any feedback!
          >
          Thank you!
          >
          >>
          >>
          >>
          >>
          >
          >

          Comment

          • Val Paliy

            #6
            Re: Expert System in C#

            Thanks, Pete! Actually, making her convert her programming religion sounds
            like a good idea! :-)

            "Peter Duniho" <NpOeStPeAdM@nn owslpianmk.comÑ Ð¾Ð¾Ð±Ñ‰Ð¸Ð»(Ð °) в Ð½Ð¾Ð²Ð¾ÑÑ‚ÑÑ …
            следующРµÐµ:op.uikd3zle 8jd0ej@petes-computer.local. ..
            On Sat, 04 Oct 2008 21:21:41 -0700, Val Paliy <valpaliy@windo wslive.com>
            wrote:
            >
            >Hello, everyone --
            >>
            >I have in mind an expert system, but the problem is I program in C#, and
            >my
            >partner - in C++. If she writes an algorithm in C++, can VS 2008 Express
            >Edition convert it to C# afterwards? I want the application to be
            >cross-platform, that's why C# was chosen as the main language.
            >
            Then perhaps your partner should simply learn C#. For someone already
            experienced in C++, and especially with someone on the team who already
            knows C#, the transition should be relatively easy. This is especially
            true if she is focusing mainly on algorithm implementations as opposed to
            needing to rely on some platform API (e.g. Windows API vs .NET Framework).
            >
            That would probably be the most straightforward , maintainable approach.
            And your partner would have the opportunity to improve her programming
            language knowledge.
            >
            Barring that, is she able to use Visual Studio? Or is she using some
            other environment? If she can use Visual Studio, then she can write a
            managed DLL in C++. She'll have to learn the basic C++/CLI syntax so that
            she's declaring and using managed types. But otherwise, she can leverage
            her existing knowledge of C++ in that way.
            >
            If she is only able to use some other development environment, or for
            whatever reason is unwilling to learn _anything_ new about managed code,
            then she can compile her code as a DLL and then your code can use p/invoke
            to call it.
            >
            She could, as Carlos suggests, build COM components and then you can use
            the managed COM stuff to access them, but that seems a bit like overkill
            to me. I think it would make some things easier, but it would introduce a
            host of additional complexities that you might not want to have to deal
            with or learn about.
            >
            Personally, I'd try to convince her to just get on board with C#. She can
            still use C++ for her other work; it's not like you're asking her to
            convert religion or something like that. :)
            >
            Pete

            Comment

            • inam gul

              #7
              Expert System in C# and C++

              hi friend,
              if your partner write code in c++ using visual studio 2003/5/8, then you can call that from your code in c#.
              The trick is that your partner will have to generate dll files as output, instead of exe,
              and the code must be in managed c++, that is in C++.Net.

              you can do a little study on google about c++.net and how it works.

              hope it would help you.

              inam

              Comment

              • xcal

                #8
                Re: Expert System in C# and C++


                "code must be in managed c++, that is in C++.Net."

                I remember vaguely now,
                you can use also MS C++ 6.0, but you'll have to
                arrange those "mangled names".

                Another aproach is to use COM dlls.
                VS 6.0 also permits to you to implement
                such components.

                In VS 2003 u use C++.net.
                Finally until VS2005, people work with CLI C++
                for VS2008 I dont know what happens.

                hope this helps, Carlos.

                <inam gulwrote in message news:2008101521 041inamullah101 @yahoo.com...
                hi friend,
                if your partner write code in c++ using visual studio 2003/5/8, then you
                can call that from your code in c#.
                The trick is that your partner will have to generate dll files as output,
                instead of exe,
                and the code must be in managed c++, that is in C++.Net.
                >
                you can do a little study on google about c++.net and how it works.
                >
                hope it would help you.
                >
                inam

                Comment

                Working...