Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1556
| From | "Willie Moore" <williem@wmconsulting.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Safearray in VO28 |
| Date | 2011-06-28 07:39 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <iuci27$ivk$1@speranza.aioe.org> (permalink) |
| References | <695d706c-4076-41d3-8f9d-2ad84bd57702@b21g2000yqc.googlegroups.com> |
Flemming,
Are you using OLE to access the VB data? If so the arrays should be
translated into safearrays by VO. I am pretty sure that the VO classes do
this. I use VOCOM for my COM access and it changes everything into COM safe
structures before the data is sent.
Regards,
Willie
"Flemming Nielsen" wrote in message
news:695d706c-4076-41d3-8f9d-2ad84bd57702@b21g2000yqc.googlegroups.com...
Hi all
I was wondering if this could be done in a better way or is this the
only way to use safearrays. I would be nice with a Safearray class.
METHOD SSICON1DecodeDataAvailable( Length) CLASS Test
Local psaiNew as _winsafearray
Local dim ADim[1] is _winsafearraybound
Local SSIcodetype as int
Local NumDataChars as long
ADim[1].lLbound := 1
ADim[1].cElements := 8
psaiNew := SafeArrayCreate(VT_BSTR,1,@ADim)
// Send the Variant DecodeData to be filled with the scanner's data
along with the
// Visual Basic Constant vbString to indicate the type of data to be
returned and the
//…variable SSIcodetype which will be set to the SSI codetype ID of
the data.
NumDataChars := self:SSICon1:GetDecodeData(psaiNew,VT_BSTR ,
@SSIcodetype) //VT_UI1 VT_BSTR
If NumDataChars > 0
ErrorBox{,"YES"}:show()
endif
IF S_OK = SafeArrayDestroy(psaiNew)
ErrorBox{,"Destroyed"}:show()
Else
ErrorBox{,"problems"}:show()
endif
return nil
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Safearray in VO28 Flemming Nielsen <checkpoint.nielsenf@gmail.com> - 2011-06-28 05:26 -0700 Re: Safearray in VO28 "Willie Moore" <williem@wmconsulting.com> - 2011-06-28 07:39 -0500 Re: Safearray in VO28 "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-28 22:11 +0000 Re: Safearray in VO28 Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-06-29 19:40 +0100
csiph-web