|
did you ever solve this issue? we actually ran into the same damned behavior and spent hours finding the bug ..
Christian
|
|
|
|
|
The simplest solution I can offer you, is to publish to your own File System, then manually copying the files produced to your production System.
*REMEMBER* to have the correct URL in the "Installation Folder URL" box when publishing, this should be the folder you wanted to publish to in the first place.
|
|
|
|
|
Hi,
How can I send two keyboard keys at the same time by using System32?
I can send consecutively but I need at the same time. For example Ctrl+c
Ctrl must be keydown, C must be keyup.(key combination for copy)
Best Regards
|
|
|
|
|
And SendKeys did not work how for you?
|
|
|
|
|
No, it didn't solve my problem. I tried.
|
|
|
|
|
|
Keyboard api works always although the form is inactive. SendKey method is not working on Button Click. I need system32.
|
|
|
|
|
Sorry, cant help there
|
|
|
|
|
You have two choices I think.
1. SendKeys CP Article here[^]
2. SendMessage from user32.dll PInvoke.net[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
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 !
|
|
|
|
|
A first chance exception is a caught exception. Please post the final exception causing that is causing your error.
|
|
|
|
|
Hi Leppie,
Just wonder what do you mean by final excpetion. Sorry I am a newbie to C#. Please further help by providing me some guidance to get to the final excpetion.
Once again, thank you for your help !
--Leslie
|
|
|
|
|
The one that made your program stop.
|
|
|
|
|
Actually my program didn't stop, it just doesn't work. When I press the button to start the TCP connection, it just shows nothing.
Should I paste all the code for your reference ?
|
|
|
|
|
Then you are probably catching the exception. You should only do that if you can reliably clean up, which in your case is not so. So remove the try/catch blocks and look at the actual exception being thrown, else you will get nowhere.
|
|
|
|
|
Hi leppie,
Thank you again for your assistance.
The following is the exception details I got:
System.Net.Sockets.SocketException was unhandled
Message="An error message cannot be displayed because an optional resource assembly containing it cannot be found"
ErrorCode=10061
NativeErrorCode=10061
StackTrace:
at System.Net.Sockets.Socket.ConnectNoCheck()
at System.Net.Sockets.Socket.Connect()
at System.Net.Sockets.TcpClient.Connect()
at System.Net.Sockets.TcpClient.Connect()
at FYP.Form1.button1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at FYP.Program.Main()
|
|
|
|
|
10061 is the error for port not responding or port not allowed. You sure the DNS is setup correctly on the mobile device? Have you tried connecting using the ip of the server instead? Have you verified the mobile device has actual network access?
|
|
|
|
|
Hi Leppie,
The IP address I specified for this fuction was 127.0.0.1. I specifed this IP address since I want the simulator to connect back to my own computer PC (which it contains a program that relays webcam images back to the simulator). I checked the connection for the simulator it seems it is not on the internet. How could I resolve the problem ?
Second, sinec this program will be running on a HSDPA phone, will specifying Tcpclient is not enough ? I Googled some code and it requires some other C# class to enable the GPRS function :
http://blogs.msdn.com/anthonywong/archive/2006/03/13/550686.aspx[^]
Thanks for your help leppie.
|
|
|
|
|
leslie wu wrote: The IP address I specified for this fuction was 127.0.0.1.
That will connect straight back to the device. You need to specify the network address of your PC (eg 192.168.0.3).
|
|
|
|
|
Hi everybody
Now I am doing a topic about JPEG compression. I read a lots of material but I feel it is very difficult. So If anyone has done about that please help me. Thank you very much for helping me
I known, JPEG uses Cosine Transform, wavelet,...
but now I am studying Cosine transform
Please help me!
|
|
|
|
|
What exactly do you want to do???
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
It IS difficult. You'll have to read quite a lot until you get the grasp of it. Start with wikipedia and some beginner's guides, but you still have to put some effort into it. Good luck.
|
|
|
|
|
Thank you for your reply and your suggestion. I read it and felt it very useful.
I'll read more to understand it.
Maybe I will have to need your help more, please help me, OK?
I will try my best.
|
|
|
|
|
I'm not that much of an expert in this field really, but if you want to email me, add '@gmail.com' after my CP username.
|
|
|
|
|
I'm trying to do some performance enhancements to my project, and, I've discovered that frequently my animation (custom) control is getting painted twice for each distinct frame.
I've traced all calls that I make to Invalidate(), but it seems that something else must be invalidating my control - for every Invalidate call that I make, there are always two calls to OnPaint.
Problem is, Control.Invalidate is not marked virtual, so I cannot trap all calls to base Invalidates, which I suspect is what is causing the seemingly unneccessary Invalidates.
Anyone know of a diagnostic technique that will allow me to establish why my control gets painted, for each call?
|
|
|
|