|
Thanks mate. However,Int64 is not bog enough for the result. Anything else that would be big enough? Int64 only returns a 13 digit number causing it not to calculate correctly.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
iam devoloping both ftp server and client in c# (windows application)
i have two doubts
1. in ftp client when set sslenable=true for security then server receive
"AUTH" command server returns "226 authenticated" then server recieve
some encoded character. my qustion is what is that chracter and which code returns by server
2.when uploading a file asynchronously server receive "OPTS" command
which code returns for this by server
please help me
with advance thanks
|
|
|
|
|
About your first question I am not sure where this information would help you. This is handled by the protocol itself and if there is an error/exception, it would be shown.
However if you still want the information, you can use any ftp client like Filezilla etc and enable tracing capabilities (to create a trace log) which would show you the data sent and received.
For OTPS command, please refer the RFC.
http://apps.mrochek.com/rfc/rfc2389.html#sec-4
~Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
I have created a service which keep track of c:\program files folder and record all the creation & deletions of in the folder. I have created a setup too to install it, And i know how how to set the service type to automatic and restart the machine, But i want to know the place where the restart code should be placed in the project. means after installation i want the computer to restart itself.
|
|
|
|
|
Write an installer that installs the service and then prompts the user to restart the machine. BTW, you should do everything you can to avoid requiring a reboot. Users hate that.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
i have two forms one fills from datasource
the second form have number of textboxs
i want to copy the text from textboxs on the first form to the textboxs on the second form
i'm using C#.net 2005
regards
|
|
|
|
|
Depending on how many tere are, you can have properties on the form that set the values and set them before showing it, or pass them through on the constructor. It also depends if you want to force your user to provide the values.
If the second form is already visible and you want to set it, then properties or using a delegate are your options
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i tried the following , but it don't work
In Form1.cs:
Copy Code
private Form2 otherForm;
private void GetOtherFormTextBox()
{
textBox1.Text = otherForm.TextBox1.Text;
}
In Form2.cs:
public TextBox TextBox1
{
get
{
return textBox1;
}
}
|
|
|
|
|
Hello everyone,
When use the following XPathDocument Constructor, we can not open the XML file in exclusive mode. Any ideas about how to open an XML file in exclusive mode and using XPath Query?
http://msdn.microsoft.com/en-us/library/te0h7f95(VS.80).aspx
thanks in advance,
George
|
|
|
|
|
Hello,
Is there any way to communicate between a single windows form, and multiple DLLs (being used in form's code...) without using IPC?
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
If the dlls are imported into the main app, you can just use delegates.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I have a datagridview. Currently I am using CellEndEdit event to handler the validation of each cell's value. May i know is there have an another way to do a cell validation ?
Any tips are welcome
regards
cocoonwls
|
|
|
|
|
DataGridView has CellValidating and CellValidated events. You can use them for cell validation.
|
|
|
|
|
Hello, thanks! Is gread!
modified on Thursday, May 15, 2008 2:52 AM
|
|
|
|
|
I am new programming and this is probably a stupid question but, how do you create a new form using a button?
I know I have learned it somewhere but I just simply forgot. Is it something like new Form = formname.Form I can't remember too well. Can anyone help?
|
|
|
|
|
I would recommend reading a beginners book at this point. I assume you don't have one, or you'd be referring to it.
Form1 f = new Form1();
f.ShowDialog();
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi,
please refer me to a sample project (on the web) that is based on 3 layers, and data access code and bussiness code in it be clear.
I want to see a sample data access and bussiness code.
Best wishes
|
|
|
|
|
I think the ASP.NET forum would be the right place to ask this question, but even there, we are here to answer specific questions, not to send people projects. We'd be googling for it, same as you can.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi may i know what is the 0000000 mean?
CREATE PROCEDURE [users_retrieve]
@UserId bigint = 00000000,
|
|
|
|
|
zero. zip. Nada.
It's a default value. 0 would be fine.
In future, we have a SQL forum.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Maybe we need so many zeros to tell the compiler it's a bigint?
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
This is really a sql questrion by the look of it, but the zeros are the default value for the parameter if you do not pass it in.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
been making a small telnet admin application for a game server for a couple months and i'm extreamly impressed with it thus far. I have had one major issue which has finally beaten me sometimes (like all game servers) the server crashes, i can detect the exception and kill the socket. BUT i cannot re-connect until the application has ended.
I know its something to do with the socket keeping the local endpoint, even though it has been closed. I know this is the OS acting as it should, but i'm beaten to find out how to reconnect.
I'v had the reconnect in 3 states:
1) cannot access a disposed object (just close & beginConnect, no reconstruction of the socket)
2) Connection has already been established (CloseAndDuplicate - this happenes regaurdless of the IsConnected state)
3) BeginReceive is not called, (close -> re-construct the socket instantly)
i'v been monitoring the netstat for the connection and i'm not to sure what my targeted result is when i intend on re-connecting at the moment i'm just killing the connection as i have already tried to enter the CLOSE_WAIT state, in fairness i dont know enough about that side of things.
The code is pretty much the basic Async code provided via MSDN and snippets on this site.. If it is required let me know.
Many thanks
Sean
|
|
|
|
|
I'm not sure I understand if you're client-side or server-side... I can see uses for both in game server scenarios (client for running automated tasks against an existing telnet game server interface - server for providing a telnet interface for a local game server that doesn't have one) and your text doesn't make that very clear (at least not to me).
In any case - here are my two cents - for either scenario.
If you're client-side:
You should be able to reconnect immediately (as the new connection uses a new source port). However, if you try to reuse your socket, chances are that BAD things will happen. From the docs: "Call the Close method to free all managed and unmanaged resources associated with the Socket . Do not attempt to reuse the Socket after closing.". So... close your socket, replace it with a brand new one and start over. Shouldn't be a problem unless you gave away a reference to the socket to someone and can't make sure they replace it with a reference to your new socket (have seen that). Sorry... back to the drawing board in that case... no (trustworthy) workaround.
If you're server-side:
Try mySocket.LingerState = new LingerOption(false, 0); before calling Close . Otherwise, the socket will try to send any unsent data (holding the server TCP port busy) until the app terminates. Worked like a charm in my stacker crane management system (one of the crane PLCs for some reason insisted that I, the client, should be the TCP server and that it, the server, should be the TCP client - go figure). Had exactly the problem you describe every time I tried to do a warm restart (without exiting the app). No more.
Later,
--
Peter
|
|
|
|