send a data object between VC++ to C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Hello,
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
I have a application, which needs to communicate between VC++ and C#.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Problem : I need to send nearly a 20 data which is of datatype like int, char, from C#-UI to VC++.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Instead of making the function very long, I want to get all data in a object and send that object.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px The over all process is like this,
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px 1.VC-UI call C# UI.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px 2.C# UI gets and <strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px data <strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px sends
to VC-function in a mfc class.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px 3. in VC it performs operation and sends data back to same C#-UI.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px 4. In C#-UI, it displays result.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px needed -> I want to use object of user defined in step 2 and 3.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px is it possible.?, give me a example code.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Kindly help me.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Thank you.
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Regards,
<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
Manoj Shenoy.

<p style="border:none; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; padding-right:0px; color:#333333; font-size:17px; line-height:21px
<strong style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px

View the full article
 

Similar threads

Back
Top