we have an app that used to call mappoint.application to (using mappoint
2004 vfp9) for doing some mileage calcs. it was rewritten to use the
mappointcontrol.ocx. it USED to work on my machine. during some testing
the mappoint quit working (turned out to be our code) and we tried
uninstalling/reinstalling mappoint. which proceeded to break using mappoint
with old, new and inprocess program.

we setup a new machine with vfp and mappoint and the code works now.

my machine however is not working. i have reinstalled or repaired vfp,
mappoint and office, w/o much luck. i started comparing registry entries
between the new machine that works & mine. by exporting some mappoint
related items i succeeded in getting the calls to mappoint.application in
the older code to work. however, .reg imports related to mappoint.control
and not doing the job yet. it appears that something is really fubared in
the registry. i have 'registered' the .ocx with regsrv32 with no problem,
but whenever our code tries to call the mappoint.control and setup the
object to be used i get 'unknown member oMap'. it is failing to find (we
presume) the control.

any thoughts on how to trackdown the wayward registry entries or reg entry
with perhaps wrong info would be appreciated.

thanks.

jim

Re: fixing mappoint registry entries? by Dan

Dan
Wed Jun 07 19:02:32 CDT 2006

Hi Jim,

"Unknown member" is a legitimate VFP error message when a member of a
collection or container can't be found. Is it possible somehow that your
member formerly known as oMap has been renamed?

Dan



jim sturtz wrote:
> we have an app that used to call mappoint.application to (using
> mappoint 2004 vfp9) for doing some mileage calcs. it was rewritten
> to use the mappointcontrol.ocx. it USED to work on my machine.
> during some testing the mappoint quit working (turned out to be our
> code) and we tried uninstalling/reinstalling mappoint. which
> proceeded to break using mappoint with old, new and inprocess program.
>
> we setup a new machine with vfp and mappoint and the code works now.
>
> my machine however is not working. i have reinstalled or repaired
> vfp, mappoint and office, w/o much luck. i started comparing
> registry entries between the new machine that works & mine. by
> exporting some mappoint related items i succeeded in getting the
> calls to mappoint.application in the older code to work. however,
> .reg imports related to mappoint.control and not doing the job yet.
> it appears that something is really fubared in the registry. i have
> 'registered' the .ocx with regsrv32 with no problem, but whenever our
> code tries to call the mappoint.control and setup the object to be
> used i get 'unknown member oMap'. it is failing to find (we presume)
> the control.
>
> any thoughts on how to trackdown the wayward registry entries or reg
> entry with perhaps wrong info would be appreciated.
>
> thanks.
>
> jim



Re: fixing mappoint registry entries? by jim

jim
Wed Jun 07 21:46:35 CDT 2006

near as we can tell tracing thru the code, the call to 'go find' the
mappoint.control isnt working because it cant find some mappoint.control key
in the registry.

the code WORKED (then a fix was done and it quit working). my partner said
that MY mappoint was broken and suggested an uninstall/reinstall. once the
new program was fixed it started running again on his machine (he didnt
fiddle with his mappoint) but wouldnt on mine.

older versions of the code using a different mappoint call
(mappoint.application) quit also. after several uninstall/reinstalls, etc
didnt fix the problem i started analyzing mappoint entries on working
machines (with fresh mappoint installs) and finding missing items. i got
enuf registry imports to let my machine run the old call to
mappoint.application again, but the mappoint.control isnt completely fixed
yet. i have no idea why the uninstall/reinstall trashed what had been
working, but very definately the install onto my computer will leave out
necessary stuff. after i had the old mappoint working (i saved the reg
fixes), i did another uninstall/reinstall and it (old program) quit working
again. i ran the reg fixes again and the old code worked again. so the
problem is definitely registry related but finding the maybe 1 key is being
a pita.

thanks.

jim

"Dan Freeman" <spam@microsoft.com> wrote in message
news:Oh$KY7oiGHA.4716@TK2MSFTNGP03.phx.gbl...
> Hi Jim,
>
> "Unknown member" is a legitimate VFP error message when a member of a
> collection or container can't be found. Is it possible somehow that your
> member formerly known as oMap has been renamed?
>
> Dan



Re: fixing mappoint registry entries? by Dan

Dan
Thu Jun 08 10:54:44 CDT 2006

I read your description of the situation the first time. I also read your
error message. That's NOT an ActiveX error message! It's a FoxPro message.
Fox is looking for a Foxpro control (the OLE container) but it isn't
present.

Check the control's name property.

Unless you perhaps paraphrased the message, but it's odd you'd exactly use a
VFP error message when paraphrasing a message from an external control.

Dan

jim sturtz wrote:
> near as we can tell tracing thru the code, the call to 'go find' the
> mappoint.control isnt working because it cant find some
> mappoint.control key in the registry.
>
> the code WORKED (then a fix was done and it quit working). my
> partner said that MY mappoint was broken and suggested an
> uninstall/reinstall. once the new program was fixed it started
> running again on his machine (he didnt fiddle with his mappoint) but
> wouldnt on mine.
>
> older versions of the code using a different mappoint call
> (mappoint.application) quit also. after several
> uninstall/reinstalls, etc didnt fix the problem i started analyzing
> mappoint entries on working machines (with fresh mappoint installs)
> and finding missing items. i got enuf registry imports to let my
> machine run the old call to mappoint.application again, but the
> mappoint.control isnt completely fixed yet. i have no idea why the
> uninstall/reinstall trashed what had been working, but very
> definately the install onto my computer will leave out necessary
> stuff. after i had the old mappoint working (i saved the reg fixes),
> i did another uninstall/reinstall and it (old program) quit working
> again. i ran the reg fixes again and the old code worked again. so
> the problem is definitely registry related but finding the maybe 1
> key is being a pita.
>
> thanks.
>
> jim
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:Oh$KY7oiGHA.4716@TK2MSFTNGP03.phx.gbl...
>> Hi Jim,
>>
>> "Unknown member" is a legitimate VFP error message when a member of a
>> collection or container can't be found. Is it possible somehow that
>> your member formerly known as oMap has been renamed?
>>
>> Dan



Re: fixing mappoint registry entries? by Imaginecorp

Imaginecorp
Thu Jun 08 21:23:21 CDT 2006

Hello Jim:
We use the mappointcontrol.ocx in our applications for directions and
calculating chargeable mileage. Have been for a few years now. It works
perfect.
Having said that:
The ocx will not work in a distributed app if a license is not bought from
Microsoft. The user machines, if the whole Mappoint app is NOT installed,
will need licenses.
I have also found when reinstalling, you have to manually un-register the
ocx, every instance of it. Then re-register. Also be aware, during
registration, even if it fails to register, keep trying to Un-register it
until you get a message it cant be found.
The above may or may not fix your problem, it is what we have experienced.
Good Luck
Mohammed
www.imaginecorp.com/whatwedo.htm



"jim sturtz" <jim@sturtzs.com> wrote in message
news:%23JCN9OoiGHA.4660@TK2MSFTNGP03.phx.gbl...
> we have an app that used to call mappoint.application to (using mappoint
> 2004 vfp9) for doing some mileage calcs. it was rewritten to use the
> mappointcontrol.ocx. it USED to work on my machine. during some testing
> the mappoint quit working (turned out to be our code) and we tried
> uninstalling/reinstalling mappoint. which proceeded to break using
> mappoint
> with old, new and inprocess program.
>
> we setup a new machine with vfp and mappoint and the code works now.
>
> my machine however is not working. i have reinstalled or repaired vfp,
> mappoint and office, w/o much luck. i started comparing registry entries
> between the new machine that works & mine. by exporting some mappoint
> related items i succeeded in getting the calls to mappoint.application in
> the older code to work. however, .reg imports related to mappoint.control
> and not doing the job yet. it appears that something is really fubared in
> the registry. i have 'registered' the .ocx with regsrv32 with no problem,
> but whenever our code tries to call the mappoint.control and setup the
> object to be used i get 'unknown member oMap'. it is failing to find (we
> presume) the control.
>
> any thoughts on how to trackdown the wayward registry entries or reg entry
> with perhaps wrong info would be appreciated.
>
> thanks.
>
> jim
>
>



Re: fixing mappoint registry entries? by jim

jim
Fri Jun 09 18:23:26 CDT 2006

if found some code in a search leading me to believe this is the unregister
syntax.

regsvr32 /u "E:\program files\Microsoft MapPoint\mappointcontrol.ocx"

i must've run in 50 times, and everytime it says ok it succeeded in
unregistering. is it possible it is really registered that many times, plus
more?

is there some way (other than by the above code) to tell if an item is
registered? like looking someplace in the registry or one of the xp admin
tools?

thanks.

jim

"Imaginecorp" <imaginecorp@msn.com> wrote in message
news:OJdiuu2iGHA.4284@TK2MSFTNGP05.phx.gbl...
> Hello Jim:
> We use the mappointcontrol.ocx in our applications for directions and
> calculating chargeable mileage. Have been for a few years now. It works
> perfect.
> Having said that:
> The ocx will not work in a distributed app if a license is not bought from
> Microsoft. The user machines, if the whole Mappoint app is NOT installed,
> will need licenses.
> I have also found when reinstalling, you have to manually un-register the
> ocx, every instance of it. Then re-register. Also be aware, during
> registration, even if it fails to register, keep trying to Un-register it
> until you get a message it cant be found.
> The above may or may not fix your problem, it is what we have experienced.
> Good Luck
> Mohammed
> www.imaginecorp.com/whatwedo.htm
>
>
>
> "jim sturtz" <jim@sturtzs.com> wrote in message
> news:%23JCN9OoiGHA.4660@TK2MSFTNGP03.phx.gbl...
> > we have an app that used to call mappoint.application to (using mappoint
> > 2004 vfp9) for doing some mileage calcs. it was rewritten to use the
> > mappointcontrol.ocx. it USED to work on my machine. during some
testing
> > the mappoint quit working (turned out to be our code) and we tried
> > uninstalling/reinstalling mappoint. which proceeded to break using
> > mappoint
> > with old, new and inprocess program.
> >
> > we setup a new machine with vfp and mappoint and the code works now.
> >
> > my machine however is not working. i have reinstalled or repaired vfp,
> > mappoint and office, w/o much luck. i started comparing registry
entries
> > between the new machine that works & mine. by exporting some mappoint
> > related items i succeeded in getting the calls to mappoint.application
in
> > the older code to work. however, .reg imports related to
mappoint.control
> > and not doing the job yet. it appears that something is really fubared
in
> > the registry. i have 'registered' the .ocx with regsrv32 with no
problem,
> > but whenever our code tries to call the mappoint.control and setup the
> > object to be used i get 'unknown member oMap'. it is failing to find
(we
> > presume) the control.
> >
> > any thoughts on how to trackdown the wayward registry entries or reg
entry
> > with perhaps wrong info would be appreciated.
> >
> > thanks.
> >
> > jim
> >
> >
>
>



Re: fixing mappoint registry entries? by jim

jim
Fri Jun 09 19:03:15 CDT 2006

following up on your thot a bit, it got me trying to find things that are
registered.

in the windows sysinfo there is a section on software environment and OLE
Registration.

mine looks like this, notice mappoint doesnt show. lower down i show the
same info from my laptop which also has mappoint installed but it works with
the vfp code. it seems that even tho the mappoint is installed (it works)
and i have registered the .ocx something just isnt getting done right.

************************
Adobe Acrobat 7.0 Document "c:\program files\adobe\acrobat
7.0\reader\acrord32.exe"
AxPulse Class Not Available
Bitmap Image mspaint.exe
CUserData Class Not Available
Drawing Not Available
MIDI Sequence mplay32.exe /mid
Media Clip mplay32.exe
Media Clip Not Available
Microsoft Equation 3.0 c:\progra~1\common~1\micros~1\equation\eqnedt32.exe
Microsoft Excel 4.0 Macro Not Available
Microsoft Excel Chart Not Available
Microsoft Excel Chart c:\progra~1\micros~2\office10\excel.exe
Microsoft Excel Chart Not Available
Microsoft Excel Worksheet Not Available
Microsoft Excel Worksheet c:\progra~1\micros~2\office10\excel.exe
Microsoft Graph Chart c:\progra~1\micros~2\office10\graph.exe
Microsoft Photo Editor 3.0 Photo
c:\progra~1\common~1\micros~1\photoed\photoed.exe
Microsoft Photo Editor 3.0 Scan
c:\progra~1\common~1\micros~1\photoed\photoed.exe
Microsoft PowerPoint Presentation c:\progra~1\micros~2\office10\powerpnt.exe
Microsoft PowerPoint Slide c:\progra~1\micros~2\office10\powerpnt.exe
Microsoft Word 6.0 - 7.0 Document Not Available
Microsoft Word 6.0 - 7.0 Picture Not Available
Microsoft Word Document c:\progra~1\micros~2\office10\winword.exe
Microsoft Word Picture c:\progra~1\micros~2\office10\winword.exe
MoneyCentral Quotes Not Available
MoneyCentral SharedStock Not Available
Paint Shop Pro 7 Image c:\progra~1\jascso~1\paints~1\psp.exe
Paint Shop Pro 7 Screen Capture c:\program files\jasc software inc\paint
shop pro 7\psp.exe
Shelsel2 Class Not Available
SmtpQMgr Class Not Available
Snapshot File c:\progra~1\common~1\micros~1\snapsh~1\snapview.exe
Sound Not Available
Sound (OLE2) sndrec32.exe
Street Wizard Document \\sdsoffice\jims edrive\map\swmap32.exe
Video Clip mplay32.exe /avi
WIA Video Preview Class Not Available
Windows Media Services DRM Storage object Not Available
WordPad Document "%programfiles%\windows nt\accessories\wordpad.exe"
*************************************
on my laptop which does work with the code there is an entry for mappoint
Bitmap Image mspaint.exe
Corel Presentations 10 Chart c:\program files\corel\wordperfect office
2002\programs\prwin10.exe
Corel Presentations 10 Drawing c:\program files\corel\wordperfect office
2002\programs\prwin10.exe
Drawing Not Available
MIDI Sequence mplay32.exe /mid
Media Clip mplay32.exe
Media Clip Not Available
Microsoft Document c:\progra~1\micros~2\office10\winword.exe
Microsoft Equation 3.0 c:\progra~1\common~1\micros~1\equation\eqnedt32.exe
Microsoft Excel 4.0 Macro Not Available
Microsoft Excel Chart Not Available
Microsoft Excel Chart c:\progra~1\micros~2\office10\excel.exe
Microsoft Excel Chart Not Available
Microsoft Excel Worksheet Not Available
Microsoft Excel Worksheet c:\progra~1\micros~2\office10\excel.exe
Microsoft Graph Chart c:\progra~1\micros~2\office10\graph.exe
Microsoft MapPoint North American Map c:\progra~1\mi770f~1\mappoint.exe
Microsoft Photo Editor 3.0 Photo
c:\progra~1\common~1\micros~1\photoed\photoed.exe
Microsoft Photo Editor 3.0 Scan
c:\progra~1\common~1\micros~1\photoed\photoed.exe
Microsoft Picture c:\progra~1\micros~2\office10\winword.exe
Microsoft PowerPoint Presentation c:\progra~1\micros~2\office10\powerpnt.exe
Microsoft PowerPoint Slide c:\progra~1\micros~2\office10\powerpnt.exe
Microsoft Word 6.0 - 7.0 Document Not Available
Microsoft Word 6.0 - 7.0 Picture Not Available
Paint Shop Pro 7 Image c:\progra~1\jascso~1\paints~1\psp.exe
Paint Shop Pro 7 Screen Capture c:\program files\jasc software inc\paint
shop pro 7\psp.exe
Quattro Pro 10 Chart c:\program files\corel\wordperfect office
2002\programs\qpw.exe
Quattro Pro 10 Notebook c:\program files\corel\wordperfect office
2002\programs\qpw.exe
Snapshot File c:\progra~1\common~1\micros~1\snapsh~1\snapview.exe
Sound Not Available
Sound (OLE2) sndrec32.exe
Street Wizard Document c:\map\swmap32.exe
Video Clip mplay32.exe /avi
Windows Media Services DRM Storage object Not Available
WordPad Document "%programfiles%\windows nt\accessories\wordpad.exe"
WordPerfect 10 Document c:\program files\corel\wordperfect office
2002\programs\wpwin10.exe /automation
**************************




Re: fixing mappoint registry entries? by Imaginecorp

Imaginecorp
Fri Jun 09 21:21:04 CDT 2006

Hello Jim;
No I do not think the Ocx would be registered that many times... Your syntax
for unregistering is correct, But unfortunately I have made it a point not
to fool around with registry so I do not know about other ways to
unregistered directly through the registry setting. But will have one of the
guys get back to you on Monday.
In the meantime I am sure somebody here more expert could help with the
registry code.
Good Luck
Mohammed
www.imaginecorp.com/whatwedo.htm

"jim sturtz" <jim@sturtzs.com> wrote in message
news:eTMqYCCjGHA.4660@TK2MSFTNGP03.phx.gbl...
> following up on your thot a bit, it got me trying to find things that are
> registered.
>
> in the windows sysinfo there is a section on software environment and OLE
> Registration.
>
> mine looks like this, notice mappoint doesnt show. lower down i show the
> same info from my laptop which also has mappoint installed but it works
> with
> the vfp code. it seems that even tho the mappoint is installed (it works)
> and i have registered the .ocx something just isnt getting done right.
>
> ************************
> Adobe Acrobat 7.0 Document "c:\program files\adobe\acrobat
> 7.0\reader\acrord32.exe"
> AxPulse Class Not Available
> Bitmap Image mspaint.exe
> CUserData Class Not Available
> Drawing Not Available
> MIDI Sequence mplay32.exe /mid
> Media Clip mplay32.exe
> Media Clip Not Available
> Microsoft Equation 3.0 c:\progra~1\common~1\micros~1\equation\eqnedt32.exe
> Microsoft Excel 4.0 Macro Not Available
> Microsoft Excel Chart Not Available
> Microsoft Excel Chart c:\progra~1\micros~2\office10\excel.exe
> Microsoft Excel Chart Not Available
> Microsoft Excel Worksheet Not Available
> Microsoft Excel Worksheet c:\progra~1\micros~2\office10\excel.exe
> Microsoft Graph Chart c:\progra~1\micros~2\office10\graph.exe
> Microsoft Photo Editor 3.0 Photo
> c:\progra~1\common~1\micros~1\photoed\photoed.exe
> Microsoft Photo Editor 3.0 Scan
> c:\progra~1\common~1\micros~1\photoed\photoed.exe
> Microsoft PowerPoint Presentation
> c:\progra~1\micros~2\office10\powerpnt.exe
> Microsoft PowerPoint Slide c:\progra~1\micros~2\office10\powerpnt.exe
> Microsoft Word 6.0 - 7.0 Document Not Available
> Microsoft Word 6.0 - 7.0 Picture Not Available
> Microsoft Word Document c:\progra~1\micros~2\office10\winword.exe
> Microsoft Word Picture c:\progra~1\micros~2\office10\winword.exe
> MoneyCentral Quotes Not Available
> MoneyCentral SharedStock Not Available
> Paint Shop Pro 7 Image c:\progra~1\jascso~1\paints~1\psp.exe
> Paint Shop Pro 7 Screen Capture c:\program files\jasc software inc\paint
> shop pro 7\psp.exe
> Shelsel2 Class Not Available
> SmtpQMgr Class Not Available
> Snapshot File c:\progra~1\common~1\micros~1\snapsh~1\snapview.exe
> Sound Not Available
> Sound (OLE2) sndrec32.exe
> Street Wizard Document \\sdsoffice\jims edrive\map\swmap32.exe
> Video Clip mplay32.exe /avi
> WIA Video Preview Class Not Available
> Windows Media Services DRM Storage object Not Available
> WordPad Document "%programfiles%\windows nt\accessories\wordpad.exe"
> *************************************
> on my laptop which does work with the code there is an entry for mappoint
> Bitmap Image mspaint.exe
> Corel Presentations 10 Chart c:\program files\corel\wordperfect office
> 2002\programs\prwin10.exe
> Corel Presentations 10 Drawing c:\program files\corel\wordperfect office
> 2002\programs\prwin10.exe
> Drawing Not Available
> MIDI Sequence mplay32.exe /mid
> Media Clip mplay32.exe
> Media Clip Not Available
> Microsoft Document c:\progra~1\micros~2\office10\winword.exe
> Microsoft Equation 3.0 c:\progra~1\common~1\micros~1\equation\eqnedt32.exe
> Microsoft Excel 4.0 Macro Not Available
> Microsoft Excel Chart Not Available
> Microsoft Excel Chart c:\progra~1\micros~2\office10\excel.exe
> Microsoft Excel Chart Not Available
> Microsoft Excel Worksheet Not Available
> Microsoft Excel Worksheet c:\progra~1\micros~2\office10\excel.exe
> Microsoft Graph Chart c:\progra~1\micros~2\office10\graph.exe
> Microsoft MapPoint North American Map c:\progra~1\mi770f~1\mappoint.exe
> Microsoft Photo Editor 3.0 Photo
> c:\progra~1\common~1\micros~1\photoed\photoed.exe
> Microsoft Photo Editor 3.0 Scan
> c:\progra~1\common~1\micros~1\photoed\photoed.exe
> Microsoft Picture c:\progra~1\micros~2\office10\winword.exe
> Microsoft PowerPoint Presentation
> c:\progra~1\micros~2\office10\powerpnt.exe
> Microsoft PowerPoint Slide c:\progra~1\micros~2\office10\powerpnt.exe
> Microsoft Word 6.0 - 7.0 Document Not Available
> Microsoft Word 6.0 - 7.0 Picture Not Available
> Paint Shop Pro 7 Image c:\progra~1\jascso~1\paints~1\psp.exe
> Paint Shop Pro 7 Screen Capture c:\program files\jasc software inc\paint
> shop pro 7\psp.exe
> Quattro Pro 10 Chart c:\program files\corel\wordperfect office
> 2002\programs\qpw.exe
> Quattro Pro 10 Notebook c:\program files\corel\wordperfect office
> 2002\programs\qpw.exe
> Snapshot File c:\progra~1\common~1\micros~1\snapsh~1\snapview.exe
> Sound Not Available
> Sound (OLE2) sndrec32.exe
> Street Wizard Document c:\map\swmap32.exe
> Video Clip mplay32.exe /avi
> Windows Media Services DRM Storage object Not Available
> WordPad Document "%programfiles%\windows nt\accessories\wordpad.exe"
> WordPerfect 10 Document c:\program files\corel\wordperfect office
> 2002\programs\wpwin10.exe /automation
> **************************
>
>
>