entry.cbSize = Convert.ToInt32(Marshal.SizeOf(GetType(SIMPHONEBOOKENTRY))) "Valdas" wrote in message news:iev39u$av1$1@trimpas.omnitel.net... o kaip sita konvertuoti? entry.cbSize = (uint)Marshal.SizeOf(typeof(SIMPHONEBOOKENTRY)); "zZz" <zZz@zirzilia.lt> wrote in message news:iev2pk$a4q$1@trimpas.omnitel.net... > Reflector > > "Valdas" wrote in message news:iev0eq$647$1@trimpas.omnitel.net... > > sveiki, kaip konvertuoti sita koda is C# i VB: > > [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; // > } > > aciu >