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. How to add dll in asp.net 2.0

How to add dll in asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpc++asp-netcomhelp
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.
  • S Offline
    S Offline
    Sapan Roy
    wrote on last edited by
    #1

    Hi all, Could any one help me out. I have created a com dll in vc++ and willing to add reference in asp.net 2.0. Once I succeed but not able to add namespace as well as not able to access any methode. Its a spillting headache for me. Please help me out.... Thanks in advance.. Sapan Hi all go for this...

    V 1 Reply Last reply
    0
    • S Sapan Roy

      Hi all, Could any one help me out. I have created a com dll in vc++ and willing to add reference in asp.net 2.0. Once I succeed but not able to add namespace as well as not able to access any methode. Its a spillting headache for me. Please help me out.... Thanks in advance.. Sapan Hi all go for this...

      V Offline
      V Offline
      Venk259
      wrote on last edited by
      #2

      Hi Sapan, Add the com dll by following method. 1) Right click on the project->select "Add Reference" 2) Click on COM Tab, browse the dll, then click OK button Inside the page_load event, Create the object of the class which is defined in the dll. If you have namespace in the COM Dll, then use like this . then access the method from the object created. Note:- 1) unless you defined the method in the class as static or shared you cannot access the method directly. 2) you cannot access the class method in the import or using statement 3) you must declared the class as public class 4) access the method of the object created is done only in the function and cannot be done in the declaration I think this will help you to solve the problem, if you couldn't, message me.

      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