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: Tue, 5 Jul 2016 21:19:25 +0200 Lines: 56 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 5xNCCZ0HKCfPrpaVaGF2kQZNsBRQdRYjMeD7VST7zDP446Uwg= Cancel-Lock: sha1:UtUD0seIt1YdtCU6WM/WLINiP94= In-Reply-To: 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:9508 Hi Alex, honestly spoken: I never faced such a strange, weird DLL ..... > > I translated "bool" in most of my attempts with VO-type "logic" > Of course a "LOGIC" is not a "BYTE" ! So i´m wondering why the interface claims a "Bool" and not a "Byte" ? You can easily check the size: ? sizeof ( LOGIC ) ? sizeof ( BYTE ) How does your final VO structure declaration look like ? > calling the C++ function explicitely by reference: function(@struct) > instead of function(struct). That also caused abort again, it´s hard to understand the reason why ? You have two options: either: -------------- local structInfo is TRPINFO FuncTest ( @structInfo ) -------------- or : ----------- local structInfo as TRPINFO structInfo := memalloc ( _sizeof ( TRPINFO ) ) FuncTest ( structInfo ) memfree ( structInfo ) ----------- _DLL FuncTest ( strucInfo as TRPINFO ) .... ----------- Regards Karl-Heinz