|
I didn't get your actual requirement.
Cheers!!
Brij
|
|
|
|
|
I want to send message through windows' XP default firewall setting and it should be not necessary to add additional program (such as tcp or udp server program) at destination machine. Because I cannot send message using "net send" to my LAN users who use Windows XP with default firewall setting.
|
|
|
|
|
Your messages aren't going to be received by voodoo magic. Any socket connection need a server AND a client.
|
|
|
|
|
But, you need to not only do that, BUT you need to get through the firewall. So, voodoo is plainly what's needed.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I want to write a client program only which will connect to default server program (i don't know what is server program).
|
|
|
|
|
I don't think you're grasping the core issue. It's not if this can be done, it's that you say you want to do it, but you've not even tried. No-one here is going to write it for you. If you were to write some code, we'd be happy to help correct it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
No. I have try TCP and UDP program already. but it need to install server program on remote machine. so, i want to use default server program on windows xp. i have little reference for network programmg. if u haven't no time to help me, please send me reference which u have. thanks.
|
|
|
|
|
You're not understanding the concept of the firewall. Since you're trying to send to a specific server on the target machine and the firewall on that machine is blocking the ports that server is listening to, there is no way on this earth that you can get a message to it. Your ONLY solution, with your requirements, is to open the ports on each workstation so the messaging server listening on it can receive the message your sending.
|
|
|
|
|
Hi,
I'm using the events mousemove/mousedown/mouseup to move a panel in my winform in realtime. This is working fine, but this panel may have other controls like labels. The events are not raised if the user tries to click on a label or any object inside the panel.
Is there any way to get around this problem without registering all the controls on the panel with the mouse events? (like a parameter that would "transmit" the events to the parent controller)
Regards,
Tony
|
|
|
|
|
i tried it once and i found that the only solution was to add the handle to all the chld controls
foreach (Control c in myPanel.Controls){
c.Event += delegateMethod();
}
Saludos!!
____Juan
|
|
|
|
|
|
Im trying to write a program below.
INPUT "Whats your name?"; NAME$
PRINT "Hello "NAME$" how are you doing today?";
INPUT "Good or Bad?"; EMOSTATE$
IF EMOSTATE$ = "Good" Then
PRINT "Thats good, tell me about it!";
INPUT "Why is it a good day!?"; WHYG$
PRINT "Thats really cool!";
END IF
IF EMOSTATE "Bad" Then
PRINT "Aww, im sorry. Why was it so bad?";
INPUT "What was bad about your day."; WHYB$
It always error's out at the INPUT "Good or Bad?"; EMOSTATE$ Can any one help me? ><
|
|
|
|
|
Hi,
that is a great little program, but I doubt the C# compiler will accept any single line of it.
What are you doing in this forum?
BTW Most programming languages I am aware of know the concept of operators, such as + - = < > and many more.
|
|
|
|
|
Wow. It's a good thing you found this forum. Abandon this ugly excuse for a language and learn C# instead, you'll be glad you did. What is this ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Maybe he needz codez for a compiler?
|
|
|
|
|
Is that COBOL? or RPG? been a while but looks like it kinda
|
|
|
|
|
|
Right. Do I dare reach over to my bookshelf to get my BASIC-Plus and Turbo BASIC books?
|
|
|
|
|
Wow! I haven't seen good old BASIC like that for years! It's like an old friend enemy revisiting.
This is the C# forum in case you didn't realise. A rough mock up of your code in C# in case you want to give one of these new-fangled languages a try!
string name;
ConsoleKeyInfo emoState = new ConsoleKeyInfo();
string why;
Console.Write("What is your name? ");
name = Console.ReadLine();
Console.WriteLine(string.Format("Hello {0}, how are you doing today? ", name));
while (emoState.Key != ConsoleKey.G && emoState.Key != ConsoleKey.B)
{
Console.Write("Good (g) or bad (b)? ");
emoState = Console.ReadKey(false);
Console.WriteLine();
}
switch (emoState.Key)
{
case ConsoleKey.G:
Console.WriteLine("Thats good, tell me about it!");
Console.Write("Why is it a good day? ");
why = Console.ReadLine();
break;
default:
Console.WriteLine("Aww, im sorry.");
Console.Write("What was bad about your day? ");
why = Console.ReadLine();
break;
}
Console.Write("Press any key to exit...");
Console.Read();
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
hello,
I am confused about choosing a solution between two options and I am not sure which one is of more performance, would you please help me !!
Solution A
============
myClass A;
for(int i=0; i < aNumber; i++)
{
A = new myClass(i);
......................
}
Solution B
=============
for(int i=0; i < aNumber; i++)
{
myClass A = new myClass(i);
......................
}
|
|
|
|
|
The solution A is looking like my favorite, its reduced. For one thing whats it for that might change my mind
|
|
|
|
|
Hi,
your two code snippets will compile to the same IL instructions and run identically.
The only difference is in the scope of A; in solution A, A still has a value when the for loop exits (assuming aNumber is greater than zero); whereas in B, A is dead and burried when the loop exits.
modified on Thursday, December 11, 2008 7:46 PM
|
|
|
|
|
The second is better, it's more readable by far. It also limits the scope of the object, and if you don't need it outside the loop, that's a good thing.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yeah, what they said, except B always looks like it'll waste cycles.
|
|
|
|
|
If you just need to run some stuff in A, then throw it away, maybe you should consider adding some kind of "reset" method to myClass which will probably be much faster than instantiating a new object again and again.
Just run a quick benchmark with
DateTime start = DateTime.Now;
for(int i=0; i < aNumber; i++)
{
myClass A = new myClass(i);
......................
}
DateTime end = DateTime.Now;
MessageBox.Show( ((TimeSpan)(end-start)).TotalMilliseconds );
|
|
|
|