Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SYS(3095,oObject) has a bug
Message
De
28/11/2005 02:23:10
 
 
À
27/11/2005 21:49:18
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01072326
Message ID:
01072338
Vues:
27
>Hi,
>
>SYS(3095) is buggy.
>
>e.g.
>
>DEFINE CLASS oTestCom AS OLEPUBLIC
>
>  FUNCTION SysTest() AS Integer

* try
    RETURN SYS(3095,m.THIS.Application)

>  ENDFUNC
>
>ENDDEFINE
>
>
>compile as COM Exe (or DLL - doesn't matter)
>
>loObj = CREATEOBJECT('comtest.oTestCom')
>?loObj.SysTest() && display's 0
>?SYS(3095,loObj) && displays the actual pointer
>
>
>So one cannot use SYS(3095) within a COM object :( !!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform