Marshalling LPCSTR*

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

Marshalling LPCSTR*

Postby darkmoonstone » Thu Mar 06, 2008 7:35 am

I want to marshall the following function



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


How do we write a PInvoke for this?
Please help me..
darkmoonstone
 
Posts: 1
Joined: Thu Mar 06, 2008 7:29 am

Postby fixitchris » Tue Jul 22, 2008 4:33 pm

[vb.net]

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

The return will be a pointer to the array.
fixitchris
 
Posts: 2
Joined: Tue Jul 22, 2008 4:29 pm


Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 1 guest