----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SBK Message 4 in Discussion Arshad,<o:p></o:p> <o:p> </o:p> Make sure you are using MarshalAs parameter on the parameters you are passing to the unmanaged call to convert your parameters to appropriate unmanaged type.For examples,<o:p></o:p> <o:p> </o:p> public void PassBStr([MarshalAs(UnmanagedType.BStr)] String s); <o:p></o:p>public void PassLPStr([MarshalAs(UnmanagedType.LPStr)] String s);<o:p></o:p>public void PassLPWStr([MarshalAs(UnmanagedType.LPWStr)] String s);<o:p></o:p> <o:p> </o:p> regards,<o:p></o:p> sb<o:p></o:p> <o:p> </o:p> S.B.Kar <o:p></o:p> <o:p></o:p> Senior Systems Engineer<o:p></o:p> GMSBU<o:p></o:p> Wipro Technologies<o:p></o:p> Ph#5539134 Extn: 4434<o:p></o:p> <o:p> </o:p> -----Original Message----- From: Iamtheoneurwarnedabout [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:15 PM To: BDOTNET Subject: Re: How to call C++ DLL in C# <o:p> </o:p> <o:p></o:p> <o:p></o:p> New Message on BDOTNET<o:p></o:p> <o:p></o:p> <o:p> </o:p> How to call C++ DLL in C#<o:p></o:p> Reply <o:p></o:p> <o:p></o:p> Reply to Sender Recommend <o:p></o:p> Message 3 in Discussion <o:p></o:p> <o:p></o:p> From: Iamtheoneurwarnedabout <o:p></o:p> <o:p> </o:p> Hi SBK,<o:p></o:p> Let me first thank you for the prompt reply. I have put the Dll in WinNT/Sys32 folder, but iam getting a wierd result, I mean some junk value. Lets say I want to add 2 numbers its givig me some junk value . Why is it so???<o:p></o:p> <o:p></o:p> Cheers!!!<o:p></o:p> Arshad<o:p></o:p> <o:p></o:p> View other groups in this category. ----------------------------------------------------------- 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]
