A question from a newbie

Avi19001

New member
A question from a newbie

Hi. I come from the theoretical side of computer science but the time has come and I have to make something that actually works so I turn to you experts in search of good advice before I start to write hundreds code lines. The objective is to build a user interface with c# (which I basically know how to do – 40 hours course 2 years ago… ) that will activate a code that I want to write in C++. I open my Visual and have to choose the type of my new project. In the interface part it looks easy enough – I should choose C# project and a “window application” . Right ? What kind of C++ project I should build to be called by the C# window application ? (A voice from my past says “DLL” but I never touched these creatures…) Any advise/tip/link to a useful web example/other ideas will be highly appreciated. I can especially use examples on how to integrate the two projects – I never implemented something like this – till now my coding experience was mainly on what the windows people call – stand alone console application. I hope I’m at the right forum and apologize if the English is causing any troubles – this is the only language my computer speaks. Thanks in advance.
 

Avi19001

New member
Now that I can read Hebrew ...

Now I can read the forum set of rules , and hopefully the text is in the write direction … This is the original message : Hi. I come from the theoretical side of computer science but the time has come and I have to make something that actually works so I turn to you experts in search of good advice before I start to write hundreds code lines. The objective is to build a user interface with c# (which I basically know how to do – 40 hours course 2 years ago… ) that will activate a code that I want to write in C++. I open my Visual and have to choose the type of my new project. In the interface part it looks easy enough – I should choose C# project and a “window application” . Right ? What kind of C++ project I should build to be called by the C# window application ? (A voice from my past says “DLL” but I never touched these creatures…) Any advise/tip/link to a useful web example/other ideas will be highly appreciated. I can especially use examples on how to integrate the two projects – I never implemented something like this – till now my coding experience was mainly on what the windows people call – stand alone console application. I hope I’m at the right forum and apologize if the English is causing any troubles – this is the only language my computer speaks. Thanks in advance.​
 

Avi19001

New member
This is what I have so far

This is the answer I have so far, so I’ll go with the DLL option. Still open to any ideas/tips. Thanks​
 

MightyMonk

New member
You don't have any better option

That is the best way you could do it :) anyhow its weird to involve C++ with C# while you could write C++ managed code (MC++) ^^ C# and C++ ahaha very funny, hmm though I love C# much easier at logic but while starting writing an application and touch C++ I won't involve C# in the middle, reduce the performance, and few things more, and could you tell me why you would want to do it ? it doesn't make any sense to me sorry!
 

Avi19001

New member
I want to cover all bases

I want to cover all bases. Mainly this is an opportunity to learn. Is there a problem with managed C++? My code will involve many calculations and some use of basic data structures in a somewhat complex hierarchy class structure. I guess its very basic C++ stuff. I can use either VS 6 or dot net (which I prefer). Thanks for your time.​
 

MightyMonk

New member
Nop Managed C++ Is Very Good :)

Have alot of advantage over C# and VB.NET and you can read all bout it here :), http://www.codeproject.com/managedcpp/intromanagedcpp.asp though she is more complex, but I prefer complexity over low performance :) so if you plan to learn C# start already touch MC++ :) you will benefit more.
 

Avi19001

New member
Thanks . Some DLL beginner links

I made up my mind . I’ll write a DLL . Here are some links that I found useful for a novice . Thanks for your help and time . http://www.codeproject.com/dll/ http://www.codeproject.com/dll/RegDLL.asp http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=617​
 
למעלה