Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading registry values Pin
Pete O'Hanlon10-Dec-07 9:24
mvePete O'Hanlon10-Dec-07 9:24 
Generaltriggers Pin
waheed awan10-Dec-07 6:29
waheed awan10-Dec-07 6:29 
GeneralRe: triggers Pin
Kristian Sixhøj10-Dec-07 7:17
Kristian Sixhøj10-Dec-07 7:17 
Generalgridview boundfield link Pin
eyeseetee10-Dec-07 5:04
eyeseetee10-Dec-07 5:04 
GeneralMS ACCESS 2003 connection from .NET 2005 C# Pin
s3rro10-Dec-07 4:49
s3rro10-Dec-07 4:49 
GeneralRe: MS ACCESS 2003 connection from .NET 2005 C# Pin
led mike10-Dec-07 4:57
led mike10-Dec-07 4:57 
GeneralRe: MS ACCESS 2003 connection from .NET 2005 C# Pin
Paul Conrad10-Dec-07 10:27
professionalPaul Conrad10-Dec-07 10:27 
QuestionHow to pass object between MFC C++ DLL and C# program? Pin
JMisfit10-Dec-07 4:22
JMisfit10-Dec-07 4:22 
I really hope I'm not asking a question that has already been answered, I've searched and couldn't find an adequate answer so thought I'd ask and hope that those that understand this technology much better than me can help me out.

The problem: I have a program written in MFC, I want to remove a portion of it and wrap it into a .dll, including an object with over 200 properties and forms so that this common code can be accessed from the program it's currently in as well as newer programs being written in C#. Basically this DLL will allow a user to change many properties of an object and I want to pass that object back and forth between the C# programs and the MFC DLL.

Ideally I'd like to be able to create the object in the C# program, fill its properties, pass the object to the MFC DLL, allow user to edit properties, and pass back to C# program.

Is there a clean way to pass the class object or reference to it in one call without having to pass each property individually?

Thank you for any and all help!
AnswerRe: How to pass object between MFC C++ DLL and C# program? Pin
Pete O'Hanlon10-Dec-07 4:27
mvePete O'Hanlon10-Dec-07 4:27 
AnswerRe: How to pass object between MFC C++ DLL and C# program? Pin
Rob Graham10-Dec-07 4:32
Rob Graham10-Dec-07 4:32 
Generalsave file Pin
venky45610-Dec-07 4:12
venky45610-Dec-07 4:12 
GeneralRe: save file Pin
Judah Gabriel Himango10-Dec-07 4:22
sponsorJudah Gabriel Himango10-Dec-07 4:22 
GeneralShow Decimal Data in Label.Text Pin
tr_thorn10-Dec-07 4:10
tr_thorn10-Dec-07 4:10 
GeneralRe: Show Decimal Data in Label.Text Pin
Pete O'Hanlon10-Dec-07 4:28
mvePete O'Hanlon10-Dec-07 4:28 
GeneralRe: Show Decimal Data in Label.Text Pin
tr_thorn10-Dec-07 20:06
tr_thorn10-Dec-07 20:06 
GeneralDataGridView Pin
Member 403999510-Dec-07 3:53
Member 403999510-Dec-07 3:53 
GeneralRe: DataGridView Pin
CKnig10-Dec-07 4:06
CKnig10-Dec-07 4:06 
GeneralRe: DataGridView Pin
Member 403999510-Dec-07 5:20
Member 403999510-Dec-07 5:20 
GeneralStatic Constructor Pin
Shubhabrata Mohanty10-Dec-07 3:42
Shubhabrata Mohanty10-Dec-07 3:42 
GeneralRe: Static Constructor Pin
Abhijit Jana10-Dec-07 3:53
professionalAbhijit Jana10-Dec-07 3:53 
GeneralRe: Static Constructor Pin
Skippums10-Dec-07 3:57
Skippums10-Dec-07 3:57 
GeneralMessageBox in Web Forms Pin
Imran Adam10-Dec-07 3:11
Imran Adam10-Dec-07 3:11 
GeneralRe: MessageBox in Web Forms Pin
Abhijit Jana10-Dec-07 3:49
professionalAbhijit Jana10-Dec-07 3:49 
GeneralRe: MessageBox in Web Forms Pin
Imran Adam10-Dec-07 9:54
Imran Adam10-Dec-07 9:54 
GeneralRe: MessageBox in Web Forms Pin
Abhijit Jana10-Dec-07 17:59
professionalAbhijit Jana10-Dec-07 17:59 

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.