Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Dimitry Sibiryakov
26.03.2018 18:04, Jiří Činčura wrote: Just use LoadLibrary() without path. The library is for sure already loaded into address space, so the function will return handle to it without further searching. I need the string. Not load the library. Then everything is even simplier:

Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Jiří Činčura
> > Hmm, found `context->getMaster()->getConfigManager()->getRootDirectory()`. > > Is there a better/shorter way? > >This is the best way, especially if there could be more than one > fbclient.dll > loaded by host process. > > > And adding "fbclient.dll" is then trivial. So it works for

Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Jiří Činčura
>Just use LoadLibrary() without path. The library is for sure already > loaded into > address space, so the function will return handle to it without further > searching. I need the string. Not load the library. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/

Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Vlad Khorsun via Firebird-devel
26.03.2018 18:49, Jiří Činčura wrote: Hmm, found `context->getMaster()->getConfigManager()->getRootDirectory()`. Is there a better/shorter way? This is the best way, especially if there could be more than one fbclient.dll loaded by host process. And adding "fbclient.dll" is then trivial.

Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Dimitry Sibiryakov
26.03.2018 17:49, Jiří Činčura wrote: Hmm, found `context->getMaster()->getConfigManager()->getRootDirectory()`. Is there a better/shorter way? Just use LoadLibrary() without path. The library is for sure already loaded into address space, so the function will return handle to it without

Re: [Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Jiří Činčura
Hmm, found `context->getMaster()->getConfigManager()->getRootDirectory()`. Is there a better/shorter way? And adding "fbclient.dll" is then trivial. So it works for me. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/

[Firebird-devel] Getting location of fbclient.dll via IExternalContext

2018-03-26 Thread Jiří Činčura
Hi *, can I get location of currently used fbclient.dll via IExternalContext? Or the directory. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ -- Check out the vibrant tech community on one of the world's most