Click here to Skip to main content
16,014,613 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to add multiple components (texboxes,compoboxbutton etc...) to a listview Pin
Gonzalo Cao29-Jul-10 23:53
Gonzalo Cao29-Jul-10 23:53 
QuestionToggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.29-Jul-10 16:53
Matt U.29-Jul-10 16:53 
AnswerRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Jimmanuel30-Jul-10 3:31
Jimmanuel30-Jul-10 3:31 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.30-Jul-10 8:42
Matt U.30-Jul-10 8:42 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Matt U.30-Jul-10 12:03
Matt U.30-Jul-10 12:03 
GeneralRe: Toggling UI Elements (ToolStrip and MenuStrip Items and the Like) Pin
Jimmanuel31-Jul-10 6:39
Jimmanuel31-Jul-10 6:39 
QuestionNHibernate CreateSqlQuery and addEntity Pin
Matt Cavanagh29-Jul-10 16:22
Matt Cavanagh29-Jul-10 16:22 
QuestionUsing RasGetEntryProperties in .NET CF Pin
notsotragichero29-Jul-10 9:49
notsotragichero29-Jul-10 9:49 
It seems that I can't get this right... I'm using the following signature:
[DllImport("coredll.dll")]
        private extern static uint RasGetEntryProperties(string lpszPhoneBook, string szEntry, ref RASENTRY lpbEntry,
            ref int lpdwEntrySize, byte lpb, int lpdwSize);


Calling it with the following parameters:
RasGetEntryProperties(null, name, ref RasEntry, ref dwSize, 0, 128);


However, whenever this is called, an error pops up on my device telling me there has been a native exception, without much detail.
I've declared the RASENTRY struct as follows:
private struct RASENTRY
        {
            public int dwSize;
            public int dwfOptions;
            public int dwCountryID;
            public int dwCountryCode;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxAreaCode + 1)]
            public string szAreaCode;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxPhoneNumber + 1)]
            public string szLocalPhoneNumber;
            public int dwAlternatesOffset;
            public RASIPADDR ipaddr;
            public RASIPADDR ipaddrDns;
            public RASIPADDR ipaddrDnsAlt;
            public RASIPADDR ipaddrWins;
            public RASIPADDR ipaddrWinsAlt;
            public int dwFrameSize;
            public int dwfNetProtocols;
            public int dwFramingProtocol;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH + 1)]
            public string szScript;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH + 1)]
            public string szAutoDialDll;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH + 1)]
            public string szAutoDialFunc;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxDeviceType + 1)]
            public string szDeviceType;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxDeviceName + 1)]
            public string szDeviceName;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxPadType + 1)]
            public string szX25PadType;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxX25Address + 1)]
            public string szX25Address;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxFacilities + 1)]
            public string szX25Facilities;
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = RAS_MaxUserData + 1)]
            public string szX25UserData;
            public int dwChannels;
            public int dwReserved1;
            public int dwReserved2;
            public int dwCustomAuthKey;
        }


Any help would be appreciated, thanks!

-Brandon
QuestiondatagridView1_CellContentClick Problem Pin
MumbleB29-Jul-10 6:27
MumbleB29-Jul-10 6:27 
AnswerRe: datagridView1_CellContentClick Problem Pin
I Believe In GOD29-Jul-10 6:56
I Believe In GOD29-Jul-10 6:56 
GeneralRe: datagridView1_CellContentClick Problem Pin
MumbleB29-Jul-10 7:05
MumbleB29-Jul-10 7:05 
AnswerRe: datagridView1_CellContentClick Problem Pin
Mycroft Holmes29-Jul-10 17:21
professionalMycroft Holmes29-Jul-10 17:21 
GeneralRe: datagridView1_CellContentClick Problem Pin
MumbleB4-Aug-10 2:39
MumbleB4-Aug-10 2:39 
QuestionProblem with pc to pc Voice chat on LAN using h323 protocol. Pin
88Rocker29-Jul-10 5:46
88Rocker29-Jul-10 5:46 
AnswerReason for my vote of 1 Pin
OriginalGriff29-Jul-10 6:04
mveOriginalGriff29-Jul-10 6:04 
QuestionGive .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 5:33
I Believe In GOD29-Jul-10 5:33 
AnswerRe: Give .NET Compiled Assemblly DLL StrongName Pin
Ennis Ray Lynch, Jr.29-Jul-10 5:35
Ennis Ray Lynch, Jr.29-Jul-10 5:35 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 5:54
I Believe In GOD29-Jul-10 5:54 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName PinPopular
Nagy Vilmos29-Jul-10 5:59
professionalNagy Vilmos29-Jul-10 5:59 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 6:02
I Believe In GOD29-Jul-10 6:02 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
Eddy Vluggen29-Jul-10 6:25
professionalEddy Vluggen29-Jul-10 6:25 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName [modified] Pin
I Believe In GOD29-Jul-10 6:38
I Believe In GOD29-Jul-10 6:38 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
Eddy Vluggen29-Jul-10 7:15
professionalEddy Vluggen29-Jul-10 7:15 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
I Believe In GOD29-Jul-10 7:34
I Believe In GOD29-Jul-10 7:34 
GeneralRe: Give .NET Compiled Assemblly DLL StrongName Pin
Eddy Vluggen29-Jul-10 8:43
professionalEddy Vluggen29-Jul-10 8:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.