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


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

Re: How setting enumerator in cavo code

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Uwe Heyer" <uwe.heyer@aristik.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: How setting enumerator in cavo code
Date 22 Sep 2014 15:32:06 GMT
Lines 34
Message-ID <c8atnmFhfb8U1@mid.individual.net> (permalink)
References <lvmpum$7fr$1@dont-email.me> <c896g6F41apU1@mid.individual.net> <lvo6dm$98n$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
X-Trace individual.net ZxqoMxJMrZEd2tuvfCZKMAkGXBvcolbpL6YouumrakvxENHdRz
Cancel-Lock sha1:iEUWCVa++lE0ddpCKYhpIj7PJfI=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:7229

Show key headers only | View raw


second look (I can't try your code)

you should align api structures to 1

STRUCT  WIN_STORAGE_DEVICE_DESCRIPTOR -> ALIGN 1 <-
MEMBER  Version AS DWORD				
MEMBER Size  AS DWORD
MEMBER DeviceType AS BYTE
MEMBER DeviceTypeModifier AS BYTE
MEMBER  RemovableMedia  AS LOGIC	-> BOOLEAN == BYTE <-
MEMBER CommandQueueing AS LOGIC		-> see above <-
MEMBER VendorIdOffset AS DWORD
MEMBER ProductIdOffset AS DWORD
MEMBER ProductRevisionOffset AS DWORD
MEMBER SerialNumberOffset AS DWORD
MEMBER BusType     				-> enum == VO INT <-
MEMBER RawPropertiesLength AS DWORD	-> set this to 1 <-
MEMBER DIM RawDeviceProperties[1024] AS BYTE  -> [1] AS BYTE <-


sizeof(above struc) should give you 40 
(allign 1 == 37  + struct is bound on multiple of 4 == 40) 


Ahoj
-Uwe







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


Thread

How setting enumerator in cavo code <jean_ray67@hotmail.com> - 2014-09-21 11:13 -0400
  Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-21 23:49 +0000
    Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-22 00:18 +0000
    Re: How setting enumerator in cavo code <jean_ray67@hotmail.com> - 2014-09-21 23:52 -0400
      Re: How setting enumerator in cavo code "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-09-22 15:32 +0000
  Re: How setting enumerator in cavo code Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-09-22 10:19 +0100

csiph-web