Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
AnswerRe: passing Value from one windows form to another Pin
Anbuselvan14-Dec-05 20:32
Anbuselvan14-Dec-05 20:32 
AnswerRe: passing Value from one windows form to another Pin
albCode14-Dec-05 20:46
albCode14-Dec-05 20:46 
QuestionCalling C# COM Object from VC++ 6.0 Pin
Soaring Eagle14-Dec-05 19:15
Soaring Eagle14-Dec-05 19:15 
AnswerRe: Calling C# COM Object from VC++ 6.0 Pin
A.Grover14-Dec-05 19:53
A.Grover14-Dec-05 19:53 
GeneralRe: Calling C# COM Object from VC++ 6.0 Pin
Soaring Eagle14-Dec-05 20:39
Soaring Eagle14-Dec-05 20:39 
GeneralRe: Calling C# COM Object from VC++ 6.0 Pin
A.Grover14-Dec-05 23:14
A.Grover14-Dec-05 23:14 
GeneralRe: Calling C# COM Object from VC++ 6.0 Pin
Soaring Eagle14-Dec-05 23:34
Soaring Eagle14-Dec-05 23:34 
QuestionRAS Pin
Avishay18714-Dec-05 19:13
Avishay18714-Dec-05 19:13 
Hi,

I am writting application that uses the funcion RasDial ...
from some reason i am allways getting error in the return value
it is always 87...?

the prototype is like this

[DllImport("rasapi32.dll",CharSet=CharSet.Auto)]

public extern static uint RasDial(IntPtr lpRasDialExtentoins,string phoneBook,RasDialParams lpRasDialParams,int dwNotifierType,RasCallBack lpNotifier,RASCONN lpRasConn);

the delegate is defined like this:


public delegate void RasCallBack(uint unMsg,RasConnectionState connectionState,int dwError);

and the usage is like this



RasDialParams dialParams; //Holds the RAS Dial parameters;

RasCallBack notifier;

RASCONN rasConn;

bool pass;

uint retVal;


//Retriving the dial parameters

dialParams = new RasDialParams();

dialParams.dwSize = Marshal.SizeOf(typeof(RasDialParams));

dialParams.szEntryName = m_name;

retVal = RASDialerResources.RasGetEntryDialParams(m_phoneBook, ref dialParams,out pass);

if(retVal != 0 )

{

throw new Exception("Could not get the dial parameters");

}

//Preforming the dial up

dialParams.szUserName = username;

dialParams.szPassword = password;

rasConn = new RASCONN();

rasConn.dwSize = Marshal.SizeOf(typeof(RASCONN));

notifier = new RasCallBack(PPPoEDialer.RasNotifier);

retVal = RASDialerResources.RasDial(IntPtr.Zero,m_phoneBook,dialParams,0,notifier,rasConn);

if(retVal!=0)

{

throw new Exception("Could not Start the ras dial");

}

m_rasHandle = rasConn.hrasconn;

hope that u can help me
Regards
Avishay

QuestionTo Increase the height of Windows Forms? Pin
MudkiSekhon14-Dec-05 18:51
MudkiSekhon14-Dec-05 18:51 
AnswerRe: To Increase the height of Windows Forms? Pin
Soaring Eagle14-Dec-05 19:02
Soaring Eagle14-Dec-05 19:02 
GeneralRe: To Increase the height of Windows Forms? Pin
MudkiSekhon14-Dec-05 19:19
MudkiSekhon14-Dec-05 19:19 
Questioncrystal report question Pin
lior654#hotmail.com14-Dec-05 18:29
lior654#hotmail.com14-Dec-05 18:29 
QuestionDissecting Exception.String Pin
redfish3414-Dec-05 17:53
redfish3414-Dec-05 17:53 
AnswerRe: Dissecting Exception.String Pin
Guffa15-Dec-05 1:32
Guffa15-Dec-05 1:32 
GeneralThanks Pin
redfish3420-Dec-05 22:28
redfish3420-Dec-05 22:28 
QuestionProblem Calling and Creating COM Objects Pin
Soaring Eagle14-Dec-05 17:13
Soaring Eagle14-Dec-05 17:13 
QuestionXml Splitter in C# Pin
Markus35014-Dec-05 16:52
Markus35014-Dec-05 16:52 
Question(Urgent) switch between tabpages of a tabcontrol by CTrl+tab Pin
LongNguyen14-Dec-05 16:07
LongNguyen14-Dec-05 16:07 
QuestionChange Time and TimeZone Programatically Pin
denpsia14-Dec-05 15:41
denpsia14-Dec-05 15:41 
QuestionHandle Picturebox in C# ??? Pin
Abubakarsb14-Dec-05 15:04
Abubakarsb14-Dec-05 15:04 
QuestionCopying more than 1 textbox field to Clipboard Pin
apoc50314-Dec-05 13:19
apoc50314-Dec-05 13:19 
AnswerRe: Copying more than 1 textbox field to Clipboard Pin
enjoycrack14-Dec-05 14:33
enjoycrack14-Dec-05 14:33 
GeneralRe: Copying more than 1 textbox field to Clipboard Pin
apoc50314-Dec-05 14:46
apoc50314-Dec-05 14:46 
Question.NET 2003 after C# Express Install Pin
Stephen McAllister14-Dec-05 9:52
Stephen McAllister14-Dec-05 9:52 
AnswerRe: .NET 2003 after C# Express Install Pin
Gulfraz Khan16-Dec-05 6:36
Gulfraz Khan16-Dec-05 6:36 

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.