Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Browser Ok - Cannot instanciate
Message
De
24/12/2005 10:13:30
 
 
À
23/12/2005 12:46:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01080586
Message ID:
01080708
Vues:
11
Have you read Rick's article?

http://www.west-wind.com/presentations/VfpDotNetInterop/DotNetFromVFP.asp

I personally haven't used COM Interop yet, but perhaps the answer to your problem might be addressed in Rick's article.

~~Bonnie



>Just getting my feet wet with Com interop. I have developed a simple class in VB.Net complete with the appropriate interfaces and compiled it with COM registration. When I examine the object in VFP9 using the Object Explorer, after having scanned the registry, The object is visible with the class as expected. The methods are identified and all appears OK. But when I try to instanciate the object with
>o=CREATEOBJECT('aws2test1.tester')
>I get the error :
>Class definition AWS2TEST1.TESTER is not found.
>
>If I try to use
>o=CREATEOBJECTEX('aws2test1.tester',"","")
>I get the error:

>OLE error code 0x800401f3: Invalid class string.
>
>Any suggestions?
>
>Glenn
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform