Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation-enabled application
Message
De
10/09/2003 03:55:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Automation-enabled application
Divers
Thread ID:
00827758
Message ID:
00827758
Vues:
51
Hello everybody,

I'm creating an object from an Automation-enabled application, SwiftMapvr.Exe

I don't have any documentation about this application but I have found a small sample in VB. I have tested it using VB5 and it works perfect.

The code is like:

Private SwiftMap As swiftmapvr.clsServer

Private Sub Command1_Click()

'The argument specifies the name of a map as it appears in the
'map selector tool

SwiftMap.DisplayMapDef Text1.Text

End Sub

Private Sub Form_Load()

'This is where the program grabs an instance of SwiftMap.
'If SwiftMap is not already running, it will be started here.

Set SwiftMap = New swiftmapvr.clsServer

End Sub

My code in VFP is like:

loSwiftMap = CreatObject('swiftmapvr.clsServer')

With loSwiftMap

.DisplayMapDef(Thisform.Text1.Value)

Endwith

Bur this is generating a error in VFP:

'OLE error code 0x80020006: Unknown name.'

Am I doing something wrong?
Am I missing something?

Thanks...


Paco Calvente.
Saludos,

Paco Calvente
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform