Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a COM Object
Message
From
09/03/2002 10:11:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/03/2002 09:32:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00630569
Message ID:
00630575
Views:
19
>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 && Not recursive
 .SortBy = 1
 .FileExpression = '*.prg;*.scx'
 .Find(0)
 For ix=1 to .Files.Count
   With .Files(ix)
	? .Path, .Name, .Size, .Attr
   endwith
 endfor
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform