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

Development work using DLLs and APIs

Hi All:

I am doing some development in VC++ using some llibraries downloaded
from the web. The library comes in 3 files
<mylib.dll>, <mylib.lib>, <mylib.exp>
and I also have <mylib.h>.

As stated in the readme guide provided, to use the library, we need to
call APIs defined inside the library. In the <mylib.h> file,
there are defined APIs as follows:

XYZHandle XYZAPI_CALL
XYZOpen( const char * XYZFile, const char * XYZAccess );

I am at a lost as to how can I include the dll into my application and
at the same time called the APIs.

I must apologise if this sounds too easy as I have no experience using
such things before. I have tried searching the web but to no avail.

Thank you for all helps.
Jul 22 '05 #1
2 1492
Tanuki wrote:
I am doing some development in VC++ using some llibraries downloaded
from the web. The library comes in 3 files
<mylib.dll>, <mylib.lib>, <mylib.exp>
and I also have <mylib.h>.

As stated in the readme guide provided, to use the library, we need to
call APIs defined inside the library. In the <mylib.h> file,
there are defined APIs as follows:

XYZHandle XYZAPI_CALL
XYZOpen( const char * XYZFile, const char * XYZAccess );

I am at a lost as to how can I include the dll into my application and
at the same time called the APIs.
Usually including the library (.lib) during linking is enough.
I must apologise if this sounds too easy as I have no experience using
such things before. I have tried searching the web but to no avail.


Please post further DLL questions to a newsgroup where they are on
topic. I recommend comp.os.ms-windows.programmer.win32.

V
Jul 22 '05 #2
Tanuki posted:
Hi All:

I am doing some development in VC++ using some llibraries downloaded
from the web. The library comes in 3 files
<mylib.dll>, <mylib.lib>, <mylib.exp> and I also have <mylib.h>.

As stated in the readme guide provided, to use the library, we need to
call APIs defined inside the library. In the <mylib.h> file,
there are defined APIs as follows:

XYZHandle XYZAPI_CALL
XYZOpen( const char * XYZFile, const char * XYZAccess );

I am at a lost as to how can I include the dll into my application and
at the same time called the APIs.

I must apologise if this sounds too easy as I have no experience using
such things before. I have tried searching the web but to no avail.

Thank you for all helps.

That is the linker's job! Go to your linker's settings, look somewhere for
"Libraries" and add the libraries. Then, when your project is linked, the
library files will be thrown in with your own object files and they'll all
get linked together into one executable!
-JKop
Jul 22 '05 #3

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

Similar topics

4
by: Jared Thirsk | last post by:
== Introduction to DAF == I am interested in the next generation of approaches to software development. Over the last decades, there has been an obvious shift in how our most complex software...
3
by: codabill | last post by:
Can someone please refer me to books, articles, websites where I can obtain information on how to set up VS2003 for team development. I am a project manager for a non-trivial military software...
16
by: Linus | last post by:
Being a ASP developer for a consultant company thinking of starting developing with ASP.NET I have read literally hundreds of web pages and posts in discussion forums on the Internet to get an idea...
19
by: Chris Brat | last post by:
I've seen a few posts, columns and articles which state that one of the advantages of Python is that code can be developed x times faster than languages such as <<Insert popular language name...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.