GIDForums

Go Back   GIDForums > Computer Programming Forums > CPP / 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 26-Mar-2008, 22:41
Algar Algar is offline
Junior Member
 
Join Date: Sep 2007
Posts: 92
Algar will become famous soon enough

Static link a dll?


Hi, I have only a kind of broad grasp of binding and the static / dynamic difference as well but heres my issue:

When I use someone else's library and I am given a .h and a .dll, then I just setup some folders in my libraries directory, add the path to windows, and add the include and lib path to visual studio (2005).

This works great... when I'm at home....but if I want to send my program to work or to a friend.... how do I accomplish this ?

Is there some way I can keep those files locally in my project and load them directly from "any" computer ?
  #2  
Old 27-Mar-2008, 15:10
mikhail mikhail is offline
Junior Member
 
Join Date: Mar 2004
Location: Dublin, Ireland
Posts: 73
mikhail is on a distinguished road

Re: Static link a dll ?


Quote:
Originally Posted by Algar
Hi, I have only a kind of broad grasp of binding and the static / dynamic difference as well but heres my issue:

When I use someone else's library and I am given a .h and a .dll, then I just setup some folders in my libraries directory, add the path to windows, and add the include and lib path to visual studio (2005).

This works great... when I'm at home....but if I want to send my program to work or to a friend.... how do I accomplish this ?

Is there some way I can keep those files locally in my project and load them directly from "any" computer ?
I'm not very confident with this sort of thing either, so perhaps someone will give better advice, but for small projects, I often just keep headers and libraries in the same folder as the source, and if I'm moving it around, I just zip the folder.
  #3  
Old 28-Mar-2008, 09:06
inevitable inevitable is offline
Junior Member
 
Join Date: Nov 2007
Posts: 53
inevitable is on a distinguished road

Re: Static link a dll?


There are 2 ways.
1. As suggested by mikhail, put the libraries in one folder and move around with our code or program as a package.

2. VS has a option to pack the libraries and your program together, and generate as exe or dll.
  #4  
Old 28-Mar-2008, 10:50
Algar Algar is offline
Junior Member
 
Join Date: Sep 2007
Posts: 92
Algar will become famous soon enough

Re: Static link a dll?


Ok, I will try this. Thanks guys
  #5  
Old 02-Apr-2008, 05:53
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 353
Peter_APIIT is on a distinguished road

Re: Static link a dll?


How to 2. VS has a option to pack the libraries and your program together, and generate as exe or dll use thi soption ?

Thanks.
__________________
Linux is the best OS in the world.
 

Recent GIDBlogUpdates On The All New Toyota VIOS - Part III by Nihal

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
Str_Misaligned in Double Link List Peter_APIIT C Programming Language 1 29-Feb-2008 20:50
Code Snipet For Doubly Linked List Danny C Programming Language 8 19-Feb-2008 11:37
RE:" THE BOUNCING BALL in C++" lucamarcus MS Visual C++ / MFC Forum 4 22-Oct-2007 09:31
triangle (polygon), drawing, sizing, and rotation programme using linked lists... promsan C Programming Language 12 14-May-2007 14:03
Anything i can do with static addActionListener(this); RobRob47 Java Forum 2 26-Mar-2007 12:17

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

All times are GMT -6. The time now is 15:36.


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