Re: Expert System in C#
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Sun, 05 Oct 2008 11:39:25 -0700
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
.
- Follow-Ups:
- Re: Expert System in C#
- From: Val Paliy
- Re: Expert System in C#
- References:
- Expert System in C#
- From: Val Paliy
- Expert System in C#
- Prev by Date: Re: Activate program by a special key
- Next by Date: Re: Establishsing database connection
- Previous by thread: Re: Expert System in C#
- Next by thread: Re: Expert System in C#
- Index(es):
Relevant Pages
|