Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to COM DLL
Message
De
30/06/1999 13:29:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Passing parameters to COM DLL
Divers
Thread ID:
00236010
Message ID:
00236010
Vues:
41
I have defined a class as follows:

define class myclass as custom
procedure init(tcparm)

set textmerge to d:\temp\testclass
set textmerge on
\<>
\<>
set textmerge off
set textmerge to
endproc
enddefine


If I compile this and then do:

lo = CREATEOBJECT("MyClass", "Hello")

the parameter gets passed just fine and is written to testclass.txt

However, if I add OLEPUBLIC and then compile as a COMDLL, the parameter never gets passed. The value of tcParm is always .F. Is this part of the COM definition...that parameters can't be passed to the Init method?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform