|
First of all, you could do it the hard way by yourself: using the System.Net.Sockets namespace and writing all the packet handling by yourself.
Once you get sick of that...you can look around for FTP components in C#. But really, you should look no further than home:
http://www.codeproject.com/csharp/FTP.asp[^]
http://www.codeproject.com/csharp/FTPDriver1.asp[^]
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
Just for reference, FTP is an application level protocol. It follows a fairly well-defined set of rules, and is text-based. It runs above TCP/IP services and sockets, and there are a thousand and more ways to implement it. If you are interested in writing your own FTP control, there are some resources you could check out. Hope they help (anyone) interested in writing an FTP control, server, or client.
First, a GREAT resource: http://www.faqs.org/rfcs/rfc-activeT.html
Second, some FTP RFC's:
File Transfer Protocol (the standard)
-> http://www.faqs.org/rfcs/rfc959.html
The File Transfer Protocol (older revisions, still useful)
-> http://www.faqs.org/rfcs/rfc172.html
-> http://www.faqs.org/rfcs/rfc265.html
-> http://www.faqs.org/rfcs/rfc354.html
-> http://www.faqs.org/rfcs/rfc542.html
Internationalization of FTP
-> http://www.faqs.org/rfcs/rfc2640.html
PKI (Public Key Infrastructure) with FTP
-> http://www.faqs.org/rfcs/rfc2585.html
PASV - Passive mode FTP to enable firewall-friendly FTP
-> http://www.faqs.org/rfcs/rfc1579.html
Using FTP (good for making sure your user complient. )
-> http://www.faqs.org/rfcs/rfc1635.html
TFTP (Trivial FTP) stuff
-> http://www.faqs.org/rfcs/rfc2349.html
-> http://www.faqs.org/rfcs/rfc2348.html
-> http://www.faqs.org/rfcs/rfc2347.html
-> http://www.faqs.org/rfcs/rfc2090.html
-> http://www.faqs.org/rfcs/rfc1350.html (the spec itself)
|
|
|
|
|
i have created a service that listen on some port.
i want.when i send some command to that perticuler port.
then it will execute a setup file using
Process.start() command.
but when i send a command.It will execute Process.star()
line but process window did not appear.
what is the problem ?
is it possible that a process executed into a service?
r00d0034@yahoo.com
|
|
|
|
|
Right click on the service property. Show the LogOn Tab, and check the "allow service to interact with desktop".
How low can you go ? (MS retrofuck)
|
|
|
|
|
thanks for reply.
but sir i right click the service(project) property.but i could not find LogOn Tab so that i could not check "allow service to interact with desktop".
how to do?
r00d0034@yahoo.com
|
|
|
|
|
i got it thanks.
r00d0034@yahoo.com
|
|
|
|
|
Please remove the now useless posts on this board.
How low can you go ? (enculage MS)
|
|
|
|
|
can it be done programatically?
i want when i install my service that check box automatically checked.
how to do that.
r00d0034@yahoo.com
|
|
|
|
|
You've got the Windows API here[^].
How low can you go ? (MS rant)
|
|
|
|
|
i have study that SERVICE_INTERACTIVE_PROCESS.
but question here is that i have created service in
csharp i have not to creat it again and i want to do that thing too.
is there any easy way?
r00d0034@yahoo.com
|
|
|
|
|
There is no API to do that with .NET
In fact there are .NET APIs but they are not public.
You have two options :
- change the appropriate registry key for this service (see in HKLM\System\CurrentControlSet\Services\"servicename"\Type).
- use interop to call the native WIN32 CreateService method. This should be something like this :
[DllImport("advapi32.dll", CharSet=CharSet.Auto)]
public extern static IntPtr CreateService(IntPtr databaseHandle, string serviceName, string displayName, int access, int serviceType, int startType, int errorControl, string binaryPath, string loadOrderGroup, IntPtr pTagId, string dependencies, string servicesStartName, string password);
you should pass the numerical value of "interactive process" for the serviceType parameter.
How low can you go ? (MS rant)
|
|
|
|
|
thanks for reply.
you want to say that i call that function in my already created service in csharp if yes?
where i have to call that function in my code?
r00d0034@yahoo.com
|
|
|
|
|
The answer is obvious.
How low can you go ? (MS rant)
|
|
|
|
|
How can I expose a COM object from a .Net Windows Application?
|
|
|
|
|
Add it to the toolbox and drag it onto the designer window Does all the necesarry steps for you.
Hope this helps
"There are no stupid question's, just stupid people."
|
|
|
|
|
But the COM object doesn't display anything. It'll only have some methods that I want to access from COM.
|
|
|
|
|
It will add it to the project, just try it! You will see what I mean then. [edit] Or reference it I mean, Ooops! [/edit]
"There are no stupid question's, just stupid people."
|
|
|
|
|
On the toolbox I can only add controls.
Let me explain what I want to do:
I have a .Net windows app. In that app I have a class, let's say:
public class MyClass
{
int callMe()
{
return 3;
}
}
I want to make this class (and the callMe function) accessible from a MFC application. How do I do it?
|
|
|
|
|
kozureokami wrote:
I have a .Net windows app. In that app I have a class,
kozureokami wrote:
I want to make this class (and the callMe function) accessible from a MFC application. How do I do it?
Look up CCW on MSDN
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
This one[^] is for you.
How low can you go ? (MS retrofuck)
|
|
|
|
|
I need to import functions frol UxTheme.dll, Windows XP's visual styles dll. Several of the functions have const parameters, and C# does not allow the use of the const keyword in function parameter definitions. I'm wondering if anyone knows how to import a function with constant parameters into a C# class.
[DllImport("shell32.dll", CharSet=CharSet.Auto)]
public static extern int DrawThemeBackgroundEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, const IntPtr pRect, const IntPtr pOptions);
|
|
|
|
|
Jon Rista wrote:
[DllImport("shell32.dll", CharSet=CharSet.Auto)]
Dont you mean [DllImport("UxTheme.dll", CharSet=CharSet.Auto)] ? Sorry I dont have docs on UxTheme.dll
"There are no stupid question's, just stupid people."
|
|
|
|
|
Doh!
Yeah, meant uxtheme.dll. I just finished working on a file importing a bunch of shell32.dll stuff. Wasn't out of "shell32" mode yet.
|
|
|
|
|
BTW, having shell32.dll in there wasn't the problem. I had it correct in my code. I'm still having the original problem.
|
|
|
|
|
Does the function definition really need that const keyword? Have you tried it, without it? What are the results?
"There are no stupid question's, just stupid people."
|
|
|
|