USING DLL IN C++

I

inma

Hi,

I'm trying to develop a simple aplication using C++ Builder with some
files: *.h, *.def, *.lib and *.dll (typical vendor files of a specific
hardware).

There are also a file *.txt including the instructions to compile all
the files in my program, I mean it's supossed that I only have to link
the proyect with the *.lib, *.def and *.dll and include in the header
of the program the file *.h with "#include <*.h>", but I can't compile
the project, and if I modify the *.h, then it's impossible to link the
project.

I'm missing, because it seems to be very easy but there is always any
error during linking.

I would like to get more information about this trouble.

Best regards,

NOTE: all the functions are declared in the file *.h as "extern C".
 
A

Alf P. Steinbach

* inma:
I'm missing

In that case, have you considered reporting to the nearest police
station? <g/>

Seriously, while DLLs are in general off-topic here we could perhaps
help you with the compilation problems.

But for that, you need to post some code that illustrates the problem.
Preferably _minimal_ code. Of course it won't compile, but an example
that you think _should_ compile cleanly (disregard linking). DO NOT
type in the code in your news message. Copy and paste.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top