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. accessing a COM component from .NET

accessing a COM component from .NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomquestion
2 Posts 2 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.
  • R Offline
    R Offline
    Ritwik Sanyal
    wrote on last edited by
    #1

    Suppose I have created a DLL file in Visual Basic, now if I want to use that DLL file from an .aspx file using C# what should I do? I have already tried with [DLLImport] attribute of System.Runtime.Interope... but it is not working for me. I am a Software Developer using C# on ASP.NET.

    B 1 Reply Last reply
    0
    • R Ritwik Sanyal

      Suppose I have created a DLL file in Visual Basic, now if I want to use that DLL file from an .aspx file using C# what should I do? I have already tried with [DLLImport] attribute of System.Runtime.Interope... but it is not working for me. I am a Software Developer using C# on ASP.NET.

      B Offline
      B Offline
      BammBamm
      wrote on last edited by
      #2

      All you need to do is set a reference to it and then you can access it directly like any other component. Go into project--> Add Reference Select the Com tab find your dll Add it. Now you should be able to access it like any other. Hope this helps.

      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