Red Gate forums :: View topic - Marshalling LPCSTR*
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

Marshalling LPCSTR*

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
darkmoonstone



Joined: 06 Mar 2008
Posts: 1

PostPosted: Thu Mar 06, 2008 7:35 am    Post subject: Marshalling LPCSTR* Reply with quote

I want to marshall the following function



DLL LPCSTR* WINAPI FunctionName()
{
return SomeArray;
}


How do we write a PInvoke for this?
Please help me..
Back to top
View user's profile Send private message
fixitchris



Joined: 22 Jul 2008
Posts: 2

PostPosted: Tue Jul 22, 2008 4:33 pm    Post subject: Reply with quote

[vb.net]

<DllImport("library.dll")> _
Private Shared Function FunctionName() as IntPtr

The return will be a pointer to the array.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group