Does anyone have any experience in passing structures to a Managed C#
DLL from an Unmanaged C++ DLL?
 
I've followed some of the examples from the internet that deal with
passing zero or more parameters between Managed/Unmanaged methods, but
nothing talks of passing a structure.
 
I have followed this Code Project article as a guideline
http://www.codeproject.com/csharp/ManagedCOM.asp
 
Using the aforementioned article,  what happens if I want to pass a
structure to the Managed ShowDialog method?
 
For example, in my unmanaged class I would like to call
 
struct TestStructure {
  int ABC;
  int XYZ;
 };
TestStructure testStruct;
 
pDotNetCOMPtr->ShowDialog(TestStructure testStruct);
 
 
Any help, sample code, or links would be very much appreciated.
 
Thank you.
 
 
 

******************************************
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
******************************************

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to