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