----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: AnupPS Message 3 in Discussion Hi, Thanks for the help. I got it working now, though there are errors with some structures, but I think I will figure it out now. I used this link from the google groups. http://groups.google.com/group/microsoft.public.dotnet.framework.interop/browse_thread/thread/51cce11315c314f6/a646a131b81eadd2?lnk=st&q=DllImport+converting+c%23+structure+to+c+structure&rnum=1&hl=en#a646a131b81eadd2 In the thread, they have used string SizeConstant = 11 for char[11] eq of C. I think thats a mistake bcoz I had to use sizeconstant = 12 to get the complete string. Another point is that they have used Charset.Unicode, whereas that was not needed (Had I would have removed that line earlier, I would have completed it very early). Can you please tell me some good site to learn about this Interop and Marshaling. I have seen many sites and they seem very much confusing (bcoz most of the time I havnt workd with COM/COM+/ complicated un Managed components) Regards, Anup Shinde. On 9/16/05, BabuLives <[EMAIL PROTECTED]> wrote: > > hai... > > did u used StructLayout attribute > > or else try this links u may get an idea... > > http://groups.google.com/group/microsoft.public.dotnet.framework.interop/browse_thread/thread/51cce11315c314f6/a646a131b81eadd2?lnk=st&q=DllImport+converting+c%23+structure+to+c+structure&rnum=1&hl=en#a646a131b81eadd2 > > http://www.codeproject.com/csharp/cscpplatebind.asp > > http://cprogrammingtrends.com/2005/0202.html > > > Regards, > Satheesh babu > > ----------------------------------------------------------- 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]
