GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Aug-2004, 09:00
csuohio csuohio is offline
New Member
 
Join Date: Jul 2004
Posts: 3
csuohio is on a distinguished road
Unhappy

calling a DLL in a static library


hi guys, we have a dll.we can call it using a source code in c++.but i am not able to call a DLL in a static library.i know this is possible.but i am not able to find the right oath.can any one help me?
i use visual c++.
  #2  
Old 03-Aug-2004, 09:23
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Hi csuohio.

Your question confuses me a bit. A DLL is a dynamically loadable library. It is not meant to be called as a static library. In order to link this statically at link time, you need to compile the source as a static library (.lib in windows I think). Then you can specify to link this library with your linker directly to your executable.

HTH,
d
  #3  
Old 03-Aug-2004, 10:43
csuohio csuohio is offline
New Member
 
Join Date: Jul 2004
Posts: 3
csuohio is on a distinguished road

i have to include a dll call in a static library


Thanks for ur reply, i know that dll is not meant to be called a dll.But, i have a software that dosnt support dlls.it can support only static libraries.so what i want to do is to build a static library which contains calls to dlls.so i want to know how dll calls can be made in a static library.

Quote:
Originally Posted by dsmith
Hi csuohio.

Your question confuses me a bit. A DLL is a dynamically loadable library. It is not meant to be called as a static library. In order to link this statically at link time, you need to compile the source as a static library (.lib in windows I think). Then you can specify to link this library with your linker directly to your executable.

HTH,
d
  #4  
Old 05-Aug-2004, 06:14
mikhail mikhail is offline
Junior Member
 
Join Date: Mar 2004
Location: Dublin, Ireland
Posts: 73
mikhail is on a distinguished road
Quote:
Originally Posted by csuohio
Thanks for ur reply, i know that dll is not meant to be called a dll.But, i have a software that dosnt support dlls.it can support only static libraries.so what i want to do is to build a static library which contains calls to dlls.so i want to know how dll calls can be made in a static library.
Do you mean that your compiler is set up to accept only static libraries and you want to call one from within that program or are you writing a static library and want to call a .dll from within it?
 
 

Recent GIDBlogWriting a book by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a DLL in static library in visual c++.net or visualc++ 6.0 csuohio MS Visual C++ / MFC Forum 0 30-Jul-2004 15:35
Calling functions within a function spudtheimpaler C Programming Language 5 02-Mar-2004 09:02
Configure Apache Accessable by using my static ip? infolock Apache Web Server Forum 0 10-Dec-2003 15:59

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.