-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: chemant
Message 1 in Discussion






Hi,<o:p></o:p>


            Want
to expose a method of COM Friendly class (managed class in c#), to an unmanaged
method which should accept pointer to LPVOID.<o:p></o:p>


<o:p> </o:p>


The exposed method should be <o:p></o:p>


HRESULT Method(LPVOID *data);<o:p></o:p>


<o:p> </o:p>


How do I write a managed code which will result exactly to
the above unmanaged code.<o:p></o:p>


I have tried the following:<o:p></o:p>


<o:p> </o:p>


a. <o:p></o:p>


            public int Method(IntPtr a)<o:p></o:p>


            {<o:p></o:p>


                        -----<o:p></o:p>


            }<o:p></o:p>


b.<o:p></o:p>


            public int Method(ref IntPtr a)<o:p></o:p>


{<o:p></o:p>


            ----<o:p></o:p>


            }<o:p></o:p>


Using TlbExp.exe I exported the managed code to Type Library
and it looks like following:<o:p></o:p>


            Int Method(long *a)<o:p></o:p>


{<o:p></o:p>


            -----<o:p></o:p>


            }<o:p></o:p>


<o:p> </o:p>


Can anybody help me getting LPVOID instead of long *<o:p></o:p>


<o:p> </o:p>


Thanks,<o:p></o:p>


Hemant<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]

Reply via email to