Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use a COM Object
Message
De
09/03/2002 10:11:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/03/2002 09:32:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00630569
Message ID:
00630575
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform