Re: Expert System in C#

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Sat, 04 Oct 2008 21:21:41 -0700, Val Paliy <valpaliy@xxxxxxxxxxxxxxx> 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
.



Relevant Pages

  • Re: Good lord, when do I get to actually program?
    ... fortunate to be starting with C# and the .NET Visual Studio: ... Use what the development environment gives you for ... It's never clever to make things complicated: ... sit down in front of Visual Studio and code. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Converting VC++ 6.0 executable code to .Net DLL
    ... development environment (Visual Studio 2005). ... So far I have copied the code into a new C++ Class Library project and ... What would I need to do to export my C++ interfaces? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Are there graphical editors for non-visual object development?
    ... > Is there a development environment where you can do object-oriented ... > then edit each of those objects to write code? ... > similar to an IDE like PowerBuilder or Visual Studio which allows us ... > code generation and all that, just a lightweight editor for writing ...
    (comp.object)
  • Installed Symantec/Norton Internet Security 2005 and can no longer run IIS
    ... I have tried to switch off all options for Symantec/Norton Internet ... Contacting server to open Web project ... I can start visual studio on any forms application. ... MS Development Environment 2003 V7.1.3088 ...
    (microsoft.public.inetserver.iis.security)
  • Re: Newbie: Deployment errors on PPC
    ... ActiveSync after you have installed Visual Studio. ... > The development environment is VS.Net 2003. ... > Error: Cannot estabilish a connection. ...
    (microsoft.public.pocketpc.developer)