Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation-enabled application
Message
From
10/09/2003 03:55:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Automation-enabled application
Miscellaneous
Thread ID:
00827758
Message ID:
00827758
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform