using ftpfrom ASP.Net
-
Hi, I have an ftp application which is a VB application, which transfers files in a given directory of host machine to another machine. I need to call this application from a C# windows service. How can I do it? Its very urgent... Thanks in Anticipation Thanks in Anticipation
-
Hi, I have an ftp application which is a VB application, which transfers files in a given directory of host machine to another machine. I need to call this application from a C# windows service. How can I do it? Its very urgent... Thanks in Anticipation Thanks in Anticipation
You must open the dll of Visual Basic as COM, and let the Visual Studio generate the Interop... It means the Visual Basic code is COM... ( ActiveX ) Regards Ricardo Casquete
-
Hi, I have an ftp application which is a VB application, which transfers files in a given directory of host machine to another machine. I need to call this application from a C# windows service. How can I do it? Its very urgent... Thanks in Anticipation Thanks in Anticipation
private Type __type = null; private object __object = null; __type = Type.GetTypeFromProgID("MyVbProject.MyVBClass"); __object = Activator.CreateInstance( __type ); If you let the com interop create your proxy and the VB app is updated it will break your application. It's better to use late binding, like the above example. Going through the IDE is just one big headache and will eventually fail in production once the COM component is updated. 1 line of code equals many bugs. So don't write any!!