Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12078

Re: C-DLL with paramter VARIANT and FILETIME?

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: C-DLL with paramter VARIANT and FILETIME?
Date 2018-10-22 21:20 +0200
Message-ID <g36m7sF46l2U1@mid.individual.net> (permalink)
References (2 earlier) <pqc867$oa4$1@news-1.m-online.net> <g32bruF75toU1@mid.individual.net> <pqhtkh$di7$1@news-1.m-online.net> <g33h9aFei8aU1@mid.individual.net> <pqkq76$8hj$1@news-1.m-online.net>

Show all headers | View raw


Hi Gerhard,

> ReadOPCItem(myserverhandle, mygrouphandle, myItemhandle, ptrVariant,
> ptrFileTime, @nQuality)
> gives back a TRUE. GetLastError() is 0 - no Error.

strange ....


> This is the C-function:
> BOOL ReadOPCItem (HANDLE hConnect, HANDLE hGroup, HANDLE hItem, VARIANT
> *pVar, FILETIME *pTimeStamp, DWORD *pQuality);


_DLL FUNCTION ReadOPCItem (nConnect AS LONG, pGroupConnect AS LONG,
pItemConnect AS LONG, pVariant AS _winVARIANT, pFileTime AS _winFILETIME,
pQuality REF DWORD) AS LOGIC PASCAL:WTclient._ReadOPCItem@24

Why "AS LONG" ?  IMO nConnect, pGroupConnect and pItemConnect should be
declared "AS PTR" and not "AS LONG" ?

Have you tried to run the VB sample exe files that are included in
WTclient.zip - just to see that ReadOPCItem() works at least with VB ?


Isn“t there any C sample that shows how ReadOPCItem()  is called ?


regards
Karl -Heinz 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

C-DLL with paramter VARIANT and FILETIME? Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-19 04:38 +0200
  Re: C-DLL with paramter VARIANT and FILETIME? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-10-19 06:18 +0200
    Re: C-DLL with paramter VARIANT and FILETIME? Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-19 11:29 +0200
      Re: C-DLL with paramter VARIANT and FILETIME? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-10-21 05:58 +0200
        Re: C-DLL with paramter VARIANT and FILETIME? Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-21 15:06 +0200
          Re: C-DLL with paramter VARIANT and FILETIME? "Karl-Heinz" <invalid@invalid.invalid> - 2018-10-21 16:36 +0200
            Re: C-DLL with paramter VARIANT and FILETIME? Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-22 17:26 +0200
              Re: C-DLL with paramter VARIANT and FILETIME? "Karl-Heinz" <invalid@invalid.invalid> - 2018-10-22 21:20 +0200
                Re: C-DLL with paramter VARIANT and FILETIME? Gerhard Bunzel <g.bunzel@domonet.de> - 2018-10-23 16:47 +0200
                Re: C-DLL with paramter VARIANT and FILETIME? "Karl-Heinz" <invalid@invalid.invalid> - 2018-10-23 18:20 +0200
                Re: C-DLL with paramter VARIANT and FILETIME? "Karl-Heinz" <invalid@invalid.invalid> - 2018-10-23 21:07 +0200

csiph-web