How to register DLL in APP path
-
I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)
-
I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)
sp_ranjan wrote:
The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path.
What? :wtf: Peace!
-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)
-
I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)
If you just want your DLL to be in a common place that other apps can find it then you can use SHGetFolderPath() with CSIDL value of CSIDL_PROGRAM_FILES_COMMON or CSIDL_PROGRAM_FILES. This is a more modern approach then using the path environment variable.
-
I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)
I forgot to mention, if you use a subfolder of "Program Files" like is typically used in installations then your apps can use GetEnvironmentVariable()/SetEnvironmentVariable() to set their own process PATH environment variables if necessary (to point to your common DLL folder).