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: C-DLL with paramter VARIANT and FILETIME? Date: Fri, 19 Oct 2018 06:18:05 +0200 Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net aQetq6n3kpznKJg0b5IUHARR1w5jn20cOlt2wtvrIMq55kWSs= Cancel-Lock: sha1:X35d4ycK6YcTlLEZJykuevBYjNM= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:12060 Hi Gerhard, probably you have to allocate memory for the relative structures and pass in the pointers. local strTimeStamp as _winFileTime strTimeStamp := MemAlloc( _sizeof( _winFileTime ) ) and after the call to the function, don't forget to call MemFree(), Wolfgang Gerhard Bunzel wrote: > Hi all, > > I have to use a C-DLL in a VO application. > Most of the C DLL-Functions are working fine - only one function with > parameters as Variant and FILETIME wont work. > > This is the C-function: > BOOL ReadOPCItem (HANDLE hConnect, HANDLE hGroup, HANDLE hItem, > VARIANT *pVar, FILETIME *pTimeStamp, DWORD *pQuality); > > Have used that with PTR, _winVariant, _winFiletime, __Variant2Usual() > - nothing is working. I would be very pleased if somone had a tip on > how this C-funktion can be used. > > Thanks in advance. > > Best regards > > Gerhard Bunzel --