Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole error 0x800401f3
Message
De
05/02/1999 12:17:14
 
 
À
04/02/1999 22:57:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00184087
Message ID:
00184422
Vues:
95
>>Hey Guys..
>>
>>Here is what I am trying to accomplish
>>
>>>Using the AddObject for the form cured the problem.
>>> e.g. MyForm.AddObject( "okcal", "thecal" )
>>I am trying to use this technique to create a MAPI session on VFP 5
>>I have a class file with the definition and using the form to access the MAPI
>>variables..
>>
>>--- Class file ---
>>
>>DEFINE CLASS MAILW AS FORM
>>windowtype = 1
>>
>>add object oleSession1 as oleSession1 With ;
>>top =0, ;
>>left = -4,;
>>height = 180,;
>>width = 269,;
>>name = "oleSession1"
>>
>>
>>add object oleMessage1 as oleMessage1 With ;
>>top =0, ;
>>left = -4,;
>>height = 180,;
>>width = 269,;
>>name = "oleMessage1"
>>
>>ENDDEFINE
>>
>>
>>DEFINE CLASS oleMessage1 as OLECONTROL
>>name = "oleMessage1"
>>oleclass="MAPI.MAPIMESSAGE.1"
>>oletyeallowed=1
>>enddefine
>>
>>DEFINE CLASS oleSession1 as OLECONTROL


Douuggghhhhh.. Thanksss ..
too much code..

;-}}
>>name = "oleSession1"
>>oleclass="MAPI.MAPISESSION.1"
>>oletyeallowed=1
>>enddefine
>>---
>>var = createobject("mailw")
>>and I use the Thisform.addobject("var","mailw")
>>but then It comes back with the following error:
>>
>>OLE error code 0x800401f3. Invalid class string..
>>what Am I doing wrong??
>>
>>thanksss
>>
>>Mark
>
>I think that the OLE class string is "MSMAPI.MAPISession.1" - you forgot the MS.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform