| View previous topic :: View next topic |
| Author |
Message |
Christer Borgqvist Guest
|
Posted: Fri Sep 15, 2006 8:10 am Post subject: get the path where the DLL are registered from |
|
|
Hi all, I have a InprocServer and using this AnsiString F_path =
ExtractFilePath(Forms::Application->ExeName);
then i get the path from where the exe is running from I need to find the
path from where the DLL is located.
How?
Regards
Christer |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Sep 15, 2006 8:10 am Post subject: Re: get the path where the DLL are registered from |
|
|
"Christer Borgqvist" <newsgroups.borland.com> wrote in message
news:450a4442 (AT) newsgroups (DOT) borland.com...
| Quote: | I need to find the path from where the DLL is located.
|
You need to use the GetModuleFileName() function, passing it the HINSTANCE
that your DLL gets as a parameter to its DllEntryPoint() function.
Gambit |
|
| Back to top |
|
 |
Christer Borgqvist Guest
|
Posted: Sun Sep 17, 2006 12:16 am Post subject: Re: get the path where the DLL are registered from |
|
|
Great Thanks.
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> skrev i meddelandet
news:450a4de9$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Christer Borgqvist" <newsgroups.borland.com> wrote in message
news:450a4442 (AT) newsgroups (DOT) borland.com...
I need to find the path from where the DLL is located.
You need to use the GetModuleFileName() function, passing it the HINSTANCE
that your DLL gets as a parameter to its DllEntryPoint() function.
Gambit
|
|
|
| Back to top |
|
 |
|