Click here to Skip to main content
15,887,974 members
Home / Discussions / C#
   

C#

 
QuestionUsing System32 Dll for sending keyboard keys? Pin
omegazafer1-Sep-08 0:50
omegazafer1-Sep-08 0:50 
AnswerRe: Using System32 Dll for sending keyboard keys? Pin
leppie1-Sep-08 2:09
leppie1-Sep-08 2:09 
GeneralRe: Using System32 Dll for sending keyboard keys? Pin
omegazafer1-Sep-08 2:23
omegazafer1-Sep-08 2:23 
GeneralRe: Using System32 Dll for sending keyboard keys? Pin
leppie1-Sep-08 3:02
leppie1-Sep-08 3:02 
GeneralRe: Using System32 Dll for sending keyboard keys? Pin
omegazafer1-Sep-08 3:38
omegazafer1-Sep-08 3:38 
GeneralRe: Using System32 Dll for sending keyboard keys? Pin
leppie1-Sep-08 5:42
leppie1-Sep-08 5:42 
AnswerRe: Using System32 Dll for sending keyboard keys? Pin
DaveyM691-Sep-08 7:35
professionalDaveyM691-Sep-08 7:35 
QuestionTcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 0:15
leslie wu1-Sep-08 0:15 
Hello all experts,

I am currenting doing my final year project about Windows mobile devices. I have the following code:

if (((Button)sender).Text == "Start")
{
try
{

//---connect to the server---
client = new TcpClient();
client.Connect(server_IP, PORTNO);
data = new byte[client.ReceiveBufferSize];
//---send message---
SendMessage("Send");

//---begin reading data asynchronously from the server---
t = new System.Threading.Thread(ReceiveImageLoop);
t.Start();
MessageBox.Show("threat created");

}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
MessageBox.Show("error !");

}
}

If I compile this code using Windows XP SP2, it is working fine. However, as I paste the code onto WM6, I got the following error message :

"
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
"

I see that my windows mobile device could not initiate a TCP connection. Could anyone give me some hints ?

Wholeheartly thanks !
AnswerRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 2:10
leppie1-Sep-08 2:10 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 3:00
leslie wu1-Sep-08 3:00 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 3:02
leppie1-Sep-08 3:02 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 3:21
leslie wu1-Sep-08 3:21 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 3:25
leppie1-Sep-08 3:25 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 4:59
leslie wu1-Sep-08 4:59 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 5:37
leppie1-Sep-08 5:37 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leslie wu1-Sep-08 6:02
leslie wu1-Sep-08 6:02 
GeneralRe: TcpClient for Windows Mobile 6 Pin
leppie1-Sep-08 6:42
leppie1-Sep-08 6:42 
QuestionJPEG compression, HELP ME! Pin
thucbv31-Aug-08 23:44
thucbv31-Aug-08 23:44 
AnswerRe: JPEG compression, HELP ME! Pin
Manas Bhardwaj1-Sep-08 0:27
professionalManas Bhardwaj1-Sep-08 0:27 
AnswerRe: JPEG compression, HELP ME! Pin
blackjack21501-Sep-08 1:34
blackjack21501-Sep-08 1:34 
GeneralRe: JPEG compression, HELP ME! Pin
thucbv1-Sep-08 7:38
thucbv1-Sep-08 7:38 
GeneralRe: JPEG compression, HELP ME! Pin
blackjack21501-Sep-08 7:44
blackjack21501-Sep-08 7:44 
QuestionTracing Invalidate calls (Windows Forms) Pin
Jon Hulatt31-Aug-08 22:58
Jon Hulatt31-Aug-08 22:58 
AnswerRe: Tracing Invalidate calls (Windows Forms) Pin
Frank Horn31-Aug-08 23:58
Frank Horn31-Aug-08 23:58 
AnswerRe: Tracing Invalidate calls (Windows Forms) Pin
leppie1-Sep-08 2:11
leppie1-Sep-08 2:11 

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.