When trying to register a dll, error "no registry helper is available" occurs. How can I register/use a c/c++ DLL
When trying to register a dll, error "no registry helper is available" occurs. How can I register/use a c/c++ DLL
A dll that registers itself has a "STDAPI DllRegisterServer(void)" entry point.
That registration is typically used for COM objects. The registration allows an object to instantiated using a CLSID with the CoCreateInstance API. It searches the registry to find the CLSID associated with that dll and its location.
If you just need to get a function out of a dll you can use. LoadLibrary( LPCTSTR lpLibFileName ) and GetProcAddress( HMODULE hMod, LPCSTR lpProcName ) where
lpLibFileName
Pointer to a null-terminated string that names the executable module (either a .DLL or .EXE file).
hModule
Handle to the DLL module that contains the function. The LoadLibrary or GetModuleHandle function returns this handle.
lpProcName
Pointer to a null-terminated string containing the function name, or specifies the function's ordinal value. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero.
I'm not sure if I answer the question or just made a lot of noise.