Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12821
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Linking to C++ DLL's |
| Date | 2020-02-01 11:12 +0100 |
| Message-ID | <h9l197F1rlvU1@mid.individual.net> (permalink) |
| References | <e038c8a9-2225-4929-95e3-34f9226817e6@googlegroups.com> |
Hi Robert,
you should try the C# way if possible and then use COM to integrate the
lib into you VO application.
Many years ago there was an article how to integrate a C++ library in
VO, but if I remember correctly it was really complicated.
Wolfgang
Robert Pope wrote:
> Hi,
>
> I'm trying to see if I can get my app to link to Google's RE2 regular
> expression library. I've obtained the source code and built the DLL
> file.
>
> It appears to export all its entry points as C++ interfaces. I've not
> encountered a library implemented like this before, and I've not yet
> successfully managed to link it. For example, I want to use the
> FullMatchN method which appears to be a method of the RE2 class. Does
> VO support this type of linking, or do I need to write a C-style
> wrapper for it?
>
> One of my colleagues suggested it might be possible and gave the VO
> SDK as a reference: _DLL ACCESS FCount CLASS
> DbFileSpec:VO28RDD.DbFileSpec:FCount:Access
>
> re2.h (I trimmed out a lot of stuff in the middle):
> class RE2 {
> public:
> static bool FullMatchN(const StringPiece& text, const RE2& re,
> const Arg* const args[], int n);
>
>
> From Dependencies (DLL exploring tool):
> public: static bool __cdecl re2::RE2::FullMatchN(class
> re2::StringPiece const &,class re2::RE2 const &,class re2::RE2::Arg
> const * const * const,int)
>
> So far I've tried various combinations of the following, but none has
> worked yet (I know the parameters are incorrect. AFAIK I should still
> be able to link without fixing that): _DLL FUNCTION
> Re2FullMatch(psztext AS PSZ, pszRe AS PSZ, pArray REF PTR) AS LOGIC
> PASCAL:RE2.RE2::FullMatchN
>
> E.g.
> RE2.FullMatchN
> RE2.RE2:FullMatchN
> RE2.RE2::FullMatchN
> RE2.re2::RE2::FullMatchN
>
> Cheers.
--
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Linking to C++ DLL's Robert Pope <cooeee@gmail.com> - 2020-01-31 03:42 -0800
Re: Linking to C++ DLL's Robert Pope <cooeee@gmail.com> - 2020-01-31 04:01 -0800
Re: Linking to C++ DLL's Robert Pope <cooeee@gmail.com> - 2020-01-31 04:17 -0800
Re: Linking to C++ DLL's Robert van der Hulst <rjvanderhulst@gmail.com> - 2020-02-01 02:48 -0800
Re: Linking to C++ DLL's "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-02-01 11:12 +0100
csiph-web