>How do you use a Component Object Model (COM) in VFP?
>
>I am trying to use a Dallas 1-Wire microlan via their COM object.
>
>I don't have a clue as to where to start....
>
>
>TIA
John,
You start with a createobject(). ie:
oTest = createobject('SomeComDll.ComClass')
Then use class PEM.
For examle VFP's filer.dll is a com dll with fileutil class in it :
oFiler = createobject('Filer.FileUtil')
with oFiler
.SearchPath = sys(5)+curdir()
.Subfolder = 0
.SortBy = 1
.FileExpression = '*.prg;*.scx'
.Find(0)
For ix=1 to .Files.Count
With .Files(ix)
? .Path, .Name, .Size, .Attr
endwith
endfor
endwith
Cetin