BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

get the path where the DLL are registered from

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Christer Borgqvist
Guest





PostPosted: Fri Sep 15, 2006 8:10 am    Post subject: get the path where the DLL are registered from Reply with quote



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





PostPosted: Fri Sep 15, 2006 8:10 am    Post subject: Re: get the path where the DLL are registered from Reply with quote



"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





PostPosted: Sun Sep 17, 2006 12:16 am    Post subject: Re: get the path where the DLL are registered from Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.