Tema: Re: Konvertuoti i is C# i VB
Autorius: saimhe
Data: 2010-12-23 10:21:40
> [StructLayout(LayoutKind.Sequential)]
> public struct SIMPHONEBOOKENTRY
> {
> public uint cbSize; //
> public uint dwParams; //
> [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
> public string lpszAddress; //
> public uint dwAddressType; //
> public uint dwNumPlan; //
> [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
> public string lpszText; //
> }

http://www.vbdotnetforums.com/compact-framework-general-discussion/12293-problem-accessing-phonebook-visual-basic-net-2005-a.html :

<StructLayout(LayoutKind.Sequential)> _
Public Structure SimPhoneBookEntry
Public cbSize As IntPtr
Public dwParams As IntPtr
Public lpszAddress As IntPtr
Public dwAddressType As IntPtr
Public dwNumPlan As IntPtr
Public lpszText As IntPtr
End Structure 'SimPhoneBookEntry

-- 
  saimhe