By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,837 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,837 IT Pros & Developers. It's quick & easy.

Expert System in C#

P: n/a
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!

Oct 5 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a

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" <va******@windowslive.comwrote in message
news:09**********************************@microsof t.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!

Oct 5 '08 #2

P: n/a
also, she could try to use her own tools to create her COM components,

Carlos.

"xcal" <a@a.comwrote in message
news:eB****************@TK2MSFTNGP04.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" <va******@windowslive.comwrote in message
news:09**********************************@microsof t.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!


Oct 5 '08 #3

P: n/a
On Sat, 04 Oct 2008 21:21:41 -0700, Val Paliy <va******@windowslive.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
Oct 5 '08 #4

P: n/a
Thank you, Carlos!

"xcal" <a@a.com()
:es**************@TK2MSFTNGP02.phx.gbl...
also, she could try to use her own tools to create her COM components,

Carlos.

"xcal" <a@a.comwrote in message
news:eB****************@TK2MSFTNGP04.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" <va******@windowslive.comwrote in message
news:09**********************************@microso ft.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!


Oct 6 '08 #5

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

"Peter Duniho" <Np*********@nnowslpianmk.comсообщил(а) в новостях
следующее:op***************@petes-computer.local...
On Sat, 04 Oct 2008 21:21:41 -0700, Val Paliy <va******@windowslive.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
Oct 6 '08 #6

P: n/a
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
Oct 15 '08 #7

P: n/a

"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:20***********************@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

Oct 15 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.