Hi All,
I am new to VFP, so the question may look very simple and naive, but any how.
I am trying to implement Microsoft MapPoint 2004 into already written application (VFP 6.0).
I need to use MapPoint dll (MPNA82.tlb) located in
c:\Program Files\Microsoft MapPoint\mpna82.tlb
1.
if it try to use DECLARE command
DLL_PATH = "C:\Program Files\Microsoft MapPoint\"
fTemp = DLL_PATH + "mpna82.tlb"
DECLARE INTEGER Application IN &fTemp
It is not working, can't get the path
DECLARE INTEGER Application IN mpna82.tlb
also is not working because the path is not right.
Also, MapPoint has 3 classes
Application
Map
MapPointUtilities
Each class has its own methods/functions which I need to use in order to create a map. For Example
Map class has
AttPushin(AtLocation, Name)
ZoomIn()
ZoomOut()
etc.
Method AddPushpin(AtLocation As Location, Name As String) As Pushpin
Member of MapPoint.Map
Adds a Pushpin to the map in the My Pushpins set.
Method ZoomIn() As Void
Member of MapPoint.Map
Zooms the map view closer.
Method ZoomOut() As Void
Member of MapPoint.Map
Zooms the map view farther out.
etc......
The question is, How should I declare these methods in VFP?
Also with DECLARE function?
Do I have to list dll.class.function?
Could anyone, please, give me a syntax or example how to use third parties dll/tlb/ocx in VFP.
Thank you in advance
Oleg
I am new to VFP, so the question may look very simple and naive, but any how.
I am trying to implement Microsoft MapPoint 2004 into already written application (VFP 6.0).
I need to use MapPoint dll (MPNA82.tlb) located in
c:\Program Files\Microsoft MapPoint\mpna82.tlb
1.
if it try to use DECLARE command
DLL_PATH = "C:\Program Files\Microsoft MapPoint\"
fTemp = DLL_PATH + "mpna82.tlb"
DECLARE INTEGER Application IN &fTemp
It is not working, can't get the path
DECLARE INTEGER Application IN mpna82.tlb
also is not working because the path is not right.
Also, MapPoint has 3 classes
Application
Map
MapPointUtilities
Each class has its own methods/functions which I need to use in order to create a map. For Example
Map class has
AttPushin(AtLocation, Name)
ZoomIn()
ZoomOut()
etc.
Method AddPushpin(AtLocation As Location, Name As String) As Pushpin
Member of MapPoint.Map
Adds a Pushpin to the map in the My Pushpins set.
Method ZoomIn() As Void
Member of MapPoint.Map
Zooms the map view closer.
Method ZoomOut() As Void
Member of MapPoint.Map
Zooms the map view farther out.
etc......
The question is, How should I declare these methods in VFP?
Also with DECLARE function?
Do I have to list dll.class.function?
Could anyone, please, give me a syntax or example how to use third parties dll/tlb/ocx in VFP.
Thank you in advance
Oleg