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. C#
  4. DLL integration

DLL integration

Scheduled Pinned Locked Moved C#
questiongraphicsgame-devhelp
4 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.
  • S Offline
    S Offline
    student6669
    wrote on last edited by
    #1

    Hi, I have tried to integrate Microsoft.DirectX.dll into my project, but when i'm running: regsvr32 Microsoft.DirectX.dll , I'm getting error message: "File was loaded dut DllRegisterServer entry point was not found. Registration failed." I thougth if I had regsvr32.exe file then I had DllRegisterServer. Can anyone tell me what is going on and what to do? Thanks

    L A H 3 Replies Last reply
    0
    • S student6669

      Hi, I have tried to integrate Microsoft.DirectX.dll into my project, but when i'm running: regsvr32 Microsoft.DirectX.dll , I'm getting error message: "File was loaded dut DllRegisterServer entry point was not found. Registration failed." I thougth if I had regsvr32.exe file then I had DllRegisterServer. Can anyone tell me what is going on and what to do? Thanks

      L Offline
      L Offline
      lajiyo
      wrote on last edited by
      #2

      I do not understand why did you do this ? I do not understand what is your prupose? if you want to use the dll.you can referance it in any folder.you can put the dll in the folder. referance it.ok? it is my addvice.

      1 Reply Last reply
      0
      • S student6669

        Hi, I have tried to integrate Microsoft.DirectX.dll into my project, but when i'm running: regsvr32 Microsoft.DirectX.dll , I'm getting error message: "File was loaded dut DllRegisterServer entry point was not found. Registration failed." I thougth if I had regsvr32.exe file then I had DllRegisterServer. Can anyone tell me what is going on and what to do? Thanks

        A Offline
        A Offline
        Andy Wieberneit
        wrote on last edited by
        #3

        regsvr32.exe is a utility used to register COM objects on your computer. A COM object lives in a DLL that exports a couple of pre-defined functions, such as DllRegisterServer. If you want to install a COM (or ActiveX, which is the same) DLL on your computer, you may use regsvr32.exe to do that. If you have a simple DLL, however, which does not contain any COM objects, you do not need to run regsvr32.exe; in such a case, you can simply call the functions exported from that DLL, maybe by using the DllImport attribute (if you want to do it with C# or VB.NET).

        1 Reply Last reply
        0
        • S student6669

          Hi, I have tried to integrate Microsoft.DirectX.dll into my project, but when i'm running: regsvr32 Microsoft.DirectX.dll , I'm getting error message: "File was loaded dut DllRegisterServer entry point was not found. Registration failed." I thougth if I had regsvr32.exe file then I had DllRegisterServer. Can anyone tell me what is going on and what to do? Thanks

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          Andy is right, but I wanted to add that regsvr32.exe will never work on .NET assemblies. IF you have to register a .NET assembly (only when it contains CCWs, or COM-Callable Wrappers), you must use regasm.exe instead. Note: you do not need to register the Managed DirectX assemblies. They are written from the ground-up and make little to no use of the DirectX APIs or COM servers and do not expose any CCWs that require the assembly to be registered. Besides, the Managed DirectX installer takes care of everything or simply fails if it can't perform a required action. You do not need to do anything else besides install the Managed DirectX runtime on the target machine that will run your application.

          Microsoft MVP, Visual C# My Articles

          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