473,509 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!

Oct 5 '08 #1
7 5442

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
2250
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load...
13
1464
by: Ghislain Tanguay | last post by:
I have a compiled vb.net app and I want to give the user a choice to launch it from the start line command and pass it a parameter or not. How can I do that in my code? Is it possible? Ex. :...
3
1476
by: Cas | last post by:
Hi, I want to use a detailsview only for inserting data into a database (for a survey). In order to check the inputted data, i need Templatefield. So I defined a detailsview and a SqlDataSource...
5
3750
by: saltysweett | last post by:
Hi all, I am trying to build a web based expert system. I have downloaded the necessary extension for php. I have configured Apache Tomcat as well. Everything is working fine except that my PHP...
28
7625
by: sana sodhal | last post by:
hi i need ur help in making my project in visual basic6.0 and that is expert system of diabetes mellatus disease i dnt know what to do so please help me in making whole project and i have to...
6
3495
by: ZAIN786 | last post by:
hi actually i want to make a expert system in c or c++ how will i do that
0
813
by: Adedoyin | last post by:
Hello everyone, this is the second time i'm posting this. i seriously need help with designing a cybercrime expert system in vb.net. the system should be able to trace the ip address of a recieved...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.