DLL integration
-
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
-
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
-
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
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).
-
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
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