[Lazarus] Can a C++ program use a freepascal object?

2012-06-06 Thread Xiangrong Fang
Hi, I am playing with CURL in FPC. My question is, if I write a wrapper for curl, e.g. TEasyCURL, is it possible to put this class into a shared library and let a C++ program use it (either static or dynamic link)? Thanks, Shannon -- -- ___ Lazarus

Re: [Lazarus] Can a C++ program use a freepascal object?

2012-06-06 Thread Sven Barth
Am 06.06.2012 11:55, schrieb Xiangrong Fang: Hi, I am playing with CURL in FPC. My question is, if I write a wrapper for curl, e.g. TEasyCURL, is it possible to put this class into a shared library and let a C++ program use it (either static or dynamic link)? No, as C++ and FPC classes have

Re: [Lazarus] Can a C++ program use a freepascal object?

2012-06-06 Thread leledumbo
Yes, using C style procedural interface. You have to (un)wrap the object oriented code on both sides. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-a-C-program-use-a-freepascal-object-tp4024363p4024368.html Sent from the Free Pascal - Lazarus

Re: [Lazarus] Can a C++ program use a freepascal object?

2012-06-06 Thread Xiangrong Fang
.n3.nabble.com/Lazarus-Can-a-C-program-use-a-freepascal-object-tp4024363p4024368.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http