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. General Programming
  3. COM
  4. HOW CAN I ADD dll to windows .net application

HOW CAN I ADD dll to windows .net application

Scheduled Pinned Locked Moved COM
csharpcomquestion
5 Posts 4 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.
  • L Offline
    L Offline
    lnmca
    wrote on last edited by
    #1

    :confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt

    S S 2 Replies Last reply
    0
    • L lnmca

      :confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      If you wrote the DLL in (say) C++, then you probably need to use PInvoke - here's an introduction[^].

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      M 1 Reply Last reply
      0
      • L lnmca

        :confused: hi, can any body tell how can i add .dll for my application(c#.net) because it can not directly added from add references( neither .net nor from com component) so i want to add dll through command prompt i edit c:\>regsvr "c:\BAS\bin\Deug\BAS_DAL.dll" BUT IT PRODUCE MESSAGE " C:\BAS\bin\Deug\BAS_DAL.dll was loaded but the DllRegisterServer entry point was noy found, DllRegisterServer may not be exported " HOW CAN ADD I .dll to my project through command prompt or Other way from :-Jaydeep Bhatt

        S Offline
        S Offline
        Sonhospa
        wrote on last edited by
        #3

        If the dll you want to add is not (yet) registered you might find it through "add references" --> choose the "search" tab and search your path to the dll. In case you change that path you have to correct your reference as well. BTW some dlls you don't register with regsvr32 but with regasm. Regards Michael

        1 Reply Last reply
        0
        • S Stuart Dootson

          If you wrote the DLL in (say) C++, then you probably need to use PInvoke - here's an introduction[^].

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          M Offline
          M Offline
          Md Marufuzzaman
          wrote on last edited by
          #4

          Hi, If your dll has .Net framework dependency then try the following, Go to .Net command prompt and enter the command below, RegAsm yourDll.dll /tlb:yourDll.tlb /codebase Note: It will register in to GAC & export tlb. Thanks

          Md. Marufuzzaman

          S 1 Reply Last reply
          0
          • M Md Marufuzzaman

            Hi, If your dll has .Net framework dependency then try the following, Go to .Net command prompt and enter the command below, RegAsm yourDll.dll /tlb:yourDll.tlb /codebase Note: It will register in to GAC & export tlb. Thanks

            Md. Marufuzzaman

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Md. Marufuzzaman wrote:

            your dll

            It's NOT my DLL - can I suggest yuou reply to the OP, rather than to my reply to him - he ain't going to read your message otherwise...

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            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