-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Prasanna_kakanoor
Message 1 in Discussion
Hi All,<o:p></o:p>
<o:p> </o:p>
My doubt is regarding the interop
service. I want to call a c++ dll from c# client. I
am getting everything fine, but a small issue, one of my function
in the DLL has a structure as parameter and this structre
inturn has array of another structure as member. I
tried searching google to get the answer.... When i
use (the code) in the first stucture 'edi_rate'
to change the c++ struct to c#, it gives
an error at runtime. the reason is MarshalAs() doesnot have info about the
size of the array('edi_speed')
[MarshalAs(UnmanagedType.ByValArray,
SizeConst = 40)]
public edi_speed[ ] CdrwWriteSpeed;<o:p></o:p>
<o:p> </o:p>
Thanks in advance for valuable reply.<o:p></o:p>
<o:p> </o:p>
Thanks & Regards,<o:p></o:p>
<st1:PersonName>Prasanna</st1:PersonName> K L <o:p></o:p>
<o:p> </o:p>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]