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


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

Re: C++ to VO

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: C++ to VO
Date 2012-03-08 10:11 +0000
Message-ID <9rrevaFn3U1@mid.individual.net> (permalink)
References <d35d7b68-d0b5-4a79-a062-e9adce1cf7bd@q12g2000yqg.googlegroups.com>

Show all headers | View raw


Hi Stef,

> C
> SOCmd(int iHnd, unsigned char cBus, unsigned char* cReqData, int
> iReqLen, unsigned char* RspData,
> 	int* iRspLen, int iDataFormat )
> 
> VO

IMHO int is long
unsigned char is byte
unsigned char* is a pointer to a string

local nHandle as long
local cBus as byte
local ptrReqData as byte ptr
local nReqLen as int
local nRspLen as int
local nDataFormat as int
local cReqData as string

nReqLen = 1024
ptrReqData = MemAlloc( nReqLen )

S0Cmd( nHandle, cBus, ptrReqData, nReqLen, @nRspLen, nDataFormat )

cReqData := Mem2String( ptrReqData, nRspLen )
MemFree( ptrReqData )


HTH

Wolfgang

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


Thread

C++ to VO Stef <stefsxl@gmail.com> - 2012-03-07 13:22 -0800
  Re: C++ to VO "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-03-08 10:11 +0000
    Re: C++ to VO Stef <stefsxl@gmail.com> - 2012-03-08 09:10 -0800
      Re: C++ to VO "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-03-08 17:26 +0000
  Re: C++ to VO Ronny <rmich@vub.ac.be> - 2012-03-08 02:13 -0800
  Re: C++ to VO malcolm gray <malcolm.gray@ntlworld.com> - 2012-03-10 19:22 +0000

csiph-web