Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compatibilité XP et Vista Pin
Le centriste7-Jan-09 1:04
Le centriste7-Jan-09 1:04 
GeneralRe: Compatibilité XP et Vista Pin
halleuxb7-Jan-09 1:48
halleuxb7-Jan-09 1:48 
GeneralRe: Compatibilité XP et Vista Pin
SeMartens7-Jan-09 1:54
SeMartens7-Jan-09 1:54 
AnswerRe: Compatibilité XP et Vista Pin
Guffa7-Jan-09 1:54
Guffa7-Jan-09 1:54 
GeneralRe: Compatibilité XP et Vista Pin
halleuxb7-Jan-09 2:06
halleuxb7-Jan-09 2:06 
GeneralRe: Compatibilité XP et Vista Pin
Eddy Vluggen7-Jan-09 2:15
professionalEddy Vluggen7-Jan-09 2:15 
AnswerRe: Compatibilité XP et Vista Pin
#realJSOP7-Jan-09 2:28
mve#realJSOP7-Jan-09 2:28 
QuestionCommon codebase for C++ and C#? Pin
Bartosz Bien7-Jan-09 0:10
Bartosz Bien7-Jan-09 0:10 
Hello All,

I am about to create a custom windowing system for both native C++ and fully managed .NET applications (plus perhaps non-Windows platforms as well). Although some aspects of the code, such as rendering routines, are environment-dependent and must be rewritten, there are certain immutable elements, such as behavior of common controls (e.g. reaction of a button or an edit control to user's input, or logical events that these controls can fire, such as "Clicked" in a button, or "TextChanged" in an edit control).

Therefore, I would like to code these reusable parts only once.

I know one solution would be to implement them in C++ and then wrap them up in a C++/CLI managed assembly. However, the managed interface must be written in order to reflect all events, methods and properties from the C++ implementation to .NET. That forces me to add each new event or property in two places: one in the C++ part, and another one in the C++/CLI interface, which is something I don't want.

Considering I have my own RTTI implementation in my native C++ library, would it be feasible to automatically generate required .NET wrappers?

Note that I would like to use the library with comparable ease in both C++ and C#. If I got a std::string EditBox::Text in C++, there must be a string EditBox.Text
in C# (and not a System.Runtime.InteropServices.Marshal.GetMyDamnedString(IntPtr(EditBox.Tag).ToPointer()), nor any similarly beautiful construct).

That's quite an architectural question, but I didn't want to crosspost - that's why it ended up here. Smile | :)

Best regards,
BB
http://bartoszbien.com

JokeRe: Common codebase for C++ and C#? Pin
CPallini7-Jan-09 0:36
mveCPallini7-Jan-09 0:36 
GeneralRe: Common codebase for C++ and C#? (update) Pin
Bartosz Bien7-Jan-09 1:29
Bartosz Bien7-Jan-09 1:29 
QuestionRe: Common codebase for C++ and C#? (update) Pin
CPallini7-Jan-09 1:44
mveCPallini7-Jan-09 1:44 
AnswerRe: Common codebase for C++ and C#? (update) Pin
Bartosz Bien7-Jan-09 2:01
Bartosz Bien7-Jan-09 2:01 
GeneralRe: Common codebase for C++ and C#? (update) Pin
CPallini7-Jan-09 2:10
mveCPallini7-Jan-09 2:10 
Questionhow to export a datagridview with C# in win appl Pin
rana_cisco6-Jan-09 23:47
rana_cisco6-Jan-09 23:47 
AnswerRe: how to export a datagridview with C# in win appl Pin
Eddy Vluggen7-Jan-09 0:18
professionalEddy Vluggen7-Jan-09 0:18 
AnswerRe: how to export a datagridview with C# in win appl Pin
Dragonfly_Lee7-Jan-09 0:47
Dragonfly_Lee7-Jan-09 0:47 
AnswerRe: how to export a datagridview with C# in win appl Pin
Ashfield7-Jan-09 1:30
Ashfield7-Jan-09 1:30 
Questiondeserialization issue Pin
George_George6-Jan-09 23:41
George_George6-Jan-09 23:41 
AnswerRe: deserialization issue Pin
Colin Angus Mackay7-Jan-09 0:43
Colin Angus Mackay7-Jan-09 0:43 
GeneralRe: deserialization issue Pin
George_George10-Jan-09 2:19
George_George10-Jan-09 2:19 
Questioncode to add cut,copy,paste property for a picturebox on form in vc#.net Pin
shabanab6-Jan-09 23:30
shabanab6-Jan-09 23:30 
AnswerRe: code to add cut,copy,paste property for a picturebox on form in vc#.net Pin
DaveyM697-Jan-09 1:33
professionalDaveyM697-Jan-09 1:33 
Questionbreak through 2 loops Pin
Deresen6-Jan-09 23:08
Deresen6-Jan-09 23:08 
GeneralRe: break through 2 loops Pin
Luc Pattyn6-Jan-09 23:15
sitebuilderLuc Pattyn6-Jan-09 23:15 
GeneralRe: break through 2 loops Pin
Deresen6-Jan-09 23:25
Deresen6-Jan-09 23:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.