On 01/06/11 13:13, Prado, Renato (R.P.) wrote:
You'll have to implement an wrapper, that allows to access the objects
and their methods by mere (non-OO) subroutines. That wrapper will have
to be written in the language of the library (here: C++), so that it
can
use the objects provided by the library, and can call their methods.
The
headers of the wrapper have to be converted into a unit (library?),

By wrapper you mean generating a unit translating the interface from the
.h right? After I got the unit, how can I link the .lib into my project?
I would not like to create a DLL in Visual C++ with the .lib inside just
to be able to use the .lib functions within Lazarus.
I can recommend the guide to using C in Freepascal projects at ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf

I used it as a manual when writing a simple interface to the tesseract OCR library, which is also a C++ library.

Malcolm

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to