Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How to integrate C DLL into VO and generate interface code Date: Thu, 23 Jun 2016 04:05:52 +0200 Lines: 29 Message-ID: References: <66abaae4-be73-486e-a8d8-b44d0592b744@googlegroups.com> <7de24866-5bfe-439f-befb-099a84afe0d0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net e+UoE4p+I2wOc5+Jn7xobAKyI7j8UqiM/tXgzhfPJyExOh6Vo= Cancel-Lock: sha1:EMc04DCS5iuZa5T7igw+CMyirZQ= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:9481 Hi Alex, > _dll FUNCTION rfidGetItem(nTrpNr as int, oTrpInfo as TRPINFO) as int > PASCAL:EASYCHECK.?GetItem@@YAHHPAUTRPINFO@@@Z > > crashes when it tries to write the first PSZ within the oTrpInfo > struc (according to the provider's log file). IMHO the C++ calling convention does something different that makes your application crash (I can be wrong, though) > > Although the provider has exposed C++ functions, they still are not > object oriented. I.e. writing wrappers for classes is not required. > > Before diving into that, I will follow your good suggestion to ask > the provider for exposing the (already existing) C functions, that > are also present in the DLL. personally I think they have exposed them already with the Bib... prefix I would try this set of functions..... Wolfgang --