Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. using ftpfrom ASP.Net

using ftpfrom ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-net
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krishna19
    wrote on last edited by
    #1

    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

    R I 2 Replies Last reply
    0
    • K krishna19

      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

      R Offline
      R Offline
      Ricardo Casquete
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • K krishna19

        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

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        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!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups