By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,132 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,132 IT Pros & Developers. It's quick & easy.

static dll linking

P: n/a
I've got a problem - I must to static link to dll library, which is
placed in subdirectory of application.
I knonw how do it in delphi but I don't known how do it in c++
(builder).

In delphi I do:
procedure FunctionName; stdcall; external 'subdirectory\library.dll';

In c++ static linking is making by lib files and there's no path and
file name of dll defined:
void __declspec(dllimport) __stdcall FunctionName();

I dont want to set paths in system and linking dynamic by LoadModule
etc.

Can you help me?

Jul 13 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2007-07-13 08:42, amarok wrote:
I've got a problem - I must to static link to dll library, which is
placed in subdirectory of application.
I knonw how do it in delphi but I don't known how do it in c++
(builder).

In delphi I do:
procedure FunctionName; stdcall; external 'subdirectory\library.dll';

In c++ static linking is making by lib files and there's no path and
file name of dll defined:
void __declspec(dllimport) __stdcall FunctionName();

I dont want to set paths in system and linking dynamic by LoadModule
etc.
The path is usually passed to the linker. You should try a groups
dedicated to Visual Studio (or search MSDN) for more help.

--
Erik Wikström
Jul 13 '07 #2

P: n/a

"Erik Wikström" <Er***********@telia.comwrote in message
news:4_****************@newsb.telia.net...
The path is usually passed to the linker. You should try a groups
dedicated to Visual Studio (or search MSDN) for more help.
Actually, he should go to the Borland newsgroups
(borland.public.cppbuilder.nativeapi would be a good choice) as his question
is about C++Builder (a Borland product).

- Dennis
Jul 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.