Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How to integrate C DLL into VO and generate interface code Date: Wed, 1 Jun 2016 12:37:47 +0200 Lines: 27 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; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net gOVa0Qsz2szZxP37I/tNpA9D0w1aPOy78q6s9xBTpuF6JvkGA= Cancel-Lock: sha1:MEyxZikTtJ20Rpcv58JqySSF+H4= In-Reply-To: <7de24866-5bfe-439f-befb-099a84afe0d0@googlegroups.com> X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 Xref: csiph.com comp.lang.clipper.visual-objects:9393 Hi Alex, two remarks: 1. wherever the C-Headerfile claims an INT you must use an INT and not a DWORD. e.g. GetErrorMessage() should look like: _dll FUNCTION GetErrorMessage(nErrorCode as INT, pMessage as PSZ, nLength AS INT) as VOID PASCAL:RFIDDLL.GetErrorMessage 2. When you forward the structure RFID_API to the DLL: write "AS RFID_API" instead of a simple "AS PTR" > I get back to you once I have implemented and > tested (currently waiting for the reader still) We´re waiting eagerly ;-) regards Karl-Heinz