473,386 Members | 1,812 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,386 software developers and data experts.

How can i call a function outside of the current project?

I mean how can i call a function which is in another project?
Should i build the function into a libary or something like .dll? And how?
Thank you so much.

--
Emerson
Nov 14 '05 #1
2 1363
Emerson wrote:

I mean how can i call a function which is in another project?
The meaning of the word "project" is not defined by C, but I guess
you mean that you'd like to learn how to build and use libraries.
Should i build the function into a libary or something like .dll? And how?


Yes, you should.

You may find that Googling for "what is a library? what are they for?"
yields useful information.
Nov 14 '05 #2
Emerson wrote:

I mean how can i call a function which is in another project?
Should i build the function into a libary or something like
.dll? And how?


There is no such thing as a dll or a project in the C language.
There is a provision for a "compilation unit", and after that
virtually all systems provide for linking separate object modules,
which have been created from a compilation unit (essentially the
source file and anything included in it). libraries and dlls are a
means of storing such object modules (not defined in C) until an
appropriate time for linking. That time may be at runtime (dynamic
linking). All these variants are system specific and are not
specified by the language, and are thus off-topic here.

Read the documentation on your particular compiler/linker and/or
your make utility (which in turn may be hidden inside an IDE
masquerading as a project). Go to a newsgroup dealing with your
particular system for more accurate advice on that system.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 14 '05 #3

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

Similar topics

0
by: Hubert Baumeister | last post by:
Fifth International Conference on eXtreme Programming and Agile Processes in Software Engineering XP2004 June 6-10, 2004, Garmisch-Partenkirchen, Germany http://www.xp2004.org/
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
2
by: joltman | last post by:
OK, this is kind of hard to explain, so I'll do my best: I have a form where I have a row where there could be multiple entries, so I have a link where it will dynamically add another row like it,...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
1
by: ypjofficial | last post by:
Hi all, what's difference does it make when we define the member function inside and outside a class? I am using vc7. when i define the member functions outside a class with the scope...
7
by: archana | last post by:
Hi all, I am having application in which i am doing asynchronous call.I am using manualresetevent to wait for asynchronous call to complete. I want to stop asynchronous call after certain...
6
by: fiefie.niles | last post by:
We have a C++ DLL that we call from VB6 program. This is how we declare the DLL in VB6: Declare Function RefSearch Lib "csearch32.dll" (ByVal path As String, ByVal findword As String, ByVal...
3
by: Mark Poppers | last post by:
I found a *.sln and an *.suo file which belong to my current project because the have the same name "TestDatabase33....." as my project. What is the purpose of these files ? If I delete them...
5
by: looi_sookchan | last post by:
Hi, I am new here.. I face problem when i try communicate two .exe together.. these two .exe i name it by App A and App B.. i try to call App A's function from App B's function.. i had create a...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.