473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

(OT) Dll and Lib (Do Correct Me)

Dear All,

I have a querry regarding the .dll and .lib,

what I understood I am pendowing , well suppose Imake a program in
which I have a
function named MyFunction();

int main ()
{
int Value = MyFunction();
return 0;
}

int MyFunction()
{
return 10;
}
Now if I make the dll and the lib for this program, then what will
happen.

According to me:

For .dll the MyFunction() will have single copy and will be accessed in
sharing mode
throught other programms which call the MyFunction()

For .lib MyFunction() will have the mutilpile copy and will be accessed
throught the other
programs with each having the separate copy.

Does From above Can I Conclude that the Process with the .lib will be
faster ?
(No doubt its consuming the lots of memory) ? (Separate copy for
Separate calls)

Apart from this what are the diffrences between them ?

So when ever I use and dll and lib then I include both .dll and .lib in
the settings ?
I am using VC6
Why both is needed to add in the program ? as both can do the same
thing as
waht i have stated above.

Please do correct me if I am wrong?

Thanks In advance
Ranjeet

May 18 '06 #1
3 1475
ra***********@gmail.com wrote:
Dear All,

I have a querry regarding the .dll and .lib,

what I understood I am pendowing , well suppose Imake a program in
which I have a
function named MyFunction();

int main ()
{
int Value = MyFunction();
return 0;
}

int MyFunction()
{
return 10;
}
Now if I make the dll and the lib for this program, then what will
happen.

According to me:

For .dll the MyFunction() will have single copy and will be accessed
in sharing mode
throught other programms which call the MyFunction()

For .lib MyFunction() will have the mutilpile copy and will be
accessed throught the other
programs with each having the separate copy.

Does From above Can I Conclude that the Process with the .lib will be
faster ?
(No doubt its consuming the lots of memory) ? (Separate copy for
Separate calls)

Apart from this what are the diffrences between them ?

So when ever I use and dll and lib then I include both .dll and .lib
in the settings ?
I am using VC6
Why both is needed to add in the program ? as both can do the same
thing as
waht i have stated above.

Please do correct me if I am wrong?


Tidy up your example so that it is correct, and compiles, then correct your
spelling, remove redundant [weird] uppercasing etc, and then go and ask this
in something like the right group - comp.os.ms-windows...

--
==============
Not a pedant
==============
May 18 '06 #2
ra***********@gmail.com wrote:
Dear All,

I have a querry regarding the .dll and .lib,


This group deals with ISO C, which has no notion of .dll or .lib. These
are Windows specific and you question would be better asked in a group
like comp.os.ms-windows.* etc.

May 18 '06 #3
ra***********@gmail.com wrote:
I have a querry regarding the .dll and .lib,
Prefacing a post with "OT" does not give you carte blanche to post as
you please.
I am using VC6


I'm sorry.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
May 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: IMSHURKKPWII | last post by:
Hi all, I am confused about the methods by which C passes things to other routines. If I have a routine, void rt( , , ...); Then I know that the process to call this function is this: ...
17
by: hugo27 | last post by:
June 28, 2004 I'm interested in finding a way to test the keyboard buffer for MT/Not MT. Tried kbhit() in system.h but it didn't do what I thought it would from reading the literature. Samples:...
26
by: Christophe Lohr | last post by:
Hi, Inside a program, I need to get some statistics about memory usage. I actually need figures given by the "ps -o vsr,rss" command. For the moment, I make a popen("ps...") followed of a...
1
by: vashwath | last post by:
Probably OT, but I did not get any suitable group to discuss this as this post also has question regarding malloc. For my current project I am inserting the following statements randomly. { int...
5
by: Urs Beeli | last post by:
I have a question regarding errno. If I understand it correctly, including <errno.h> allows me to check "errno" for error values that some standard library functions may set. This brings up some...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
15
by: robert maas, see http://tinyurl.com/uh3t | last post by:
Here's the source: #include <stdio.h> #include <errno.h> main () { char* str = "9999999999"; long long int llin; char* endptr; /* Set by strtoll */ int nch; errno = 0; llin = strtoll(str,...
24
by: Adam | last post by:
Hi, Does anyone know of an online C-to-HTML converter to display code nicely formatted in a browser? Thanks a lot, Adam
65
by: Chris Carlen | last post by:
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective...
29
by: Barry | last post by:
I know this is not a php question. If that bothers you, don't respond. If not, I sure could use the advice... I'm using a very abbreviated set of code to show a calendar. The idea is to simply...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.