Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Anyone using MP2004 ActiveX on Windows 64Bit

This is a discussion on Anyone using MP2004 ActiveX on Windows 64Bit within the MapPoint Desktop Discussion forums, part of the Map Forums category; I've just installed MapPoint2004 on our Windows 2003 Server (64 Bit edition) and it has installed successfully and is working ...

  1. #1
    IanRidley is offline Junior Member White Belt
    Join Date
    Jul 2006
    Posts
    1

    Anyone using MP2004 ActiveX on Windows 64Bit

    I've just installed MapPoint2004 on our Windows 2003 Server (64 Bit edition) and it has installed successfully and is working correctly . I have also installed a bespoke VB.Net application which uses the MP ActiveX Control. As soon as the application tries to create an instance of MapPoint it is falling over with a 'CLASS NOT REGISTERED' error.

    The control is definitely registered...the interesting bit in the exception message (which I've posted below) is the parameter called context which is an int32. Could this be an int64 on Windows 64 Bit? or is this a red herring?

    Has anyone else managed to use the active x control on a 64 bit version of windows

    Thanks

    Ian





    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    at System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
    at System.Windows.Forms.AxHost.CreateWithoutLicense(G uid clsid)
    at System.Windows.Forms.AxHost.CreateWithLicense(Stri ng license, Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d clsid)
    at System.Windows.Forms.AxHost.CreateInstance()
    at System.Windows.Forms.AxHost.GetOcxCreate()
    at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
    at System.Windows.Forms.AxHost.CreateHandle()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.AxHost.EndInit()
    at MapPoint64.Form1.InitializeComponent()
    at MapPoint64.Form1..ctor()
    at MapPoint64.frmStart.Button1_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    MapPoint64
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20MapPoint%20Europe/MapPoint64.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    AxInterop.MapPoint
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20MapPoint%20Europe/AxInterop.MapPoint.DLL
    ----------------------------------------

  2. #2
    Juozas is offline Junior Member White Belt
    Join Date
    Aug 2007
    Posts
    3

    Re: Anyone using MP2004 ActiveX on Windows 64Bit

    I found answer in microsoft.public.mappoint discussion group:

    Your problem may be that 64 bit applications
    (processes) cannot load 32 bit DLLs, which the MapPoint OCX is.

    To check if this is the problem, right-click on your project in
    Solution Explorer and select "Properties". Switch to the "Build"
    tab. Under "Platform Target", select
    "x86" instead of "Any CPU" (or indeed x64 or Itanium). Rebuild.

    This will prevent the .NET Jitter to try and compile your application
    into a 64 bit executable which has trouble loading a 32 bit OCX.

    (Compiling the app on 32 bit XP does not help, as the jitter decides
    at runtime - on the 64 bit target machine - which native code to
    create from the IL you compiled on the 32 machine.)

    Regards,
    Gilles [MVP].

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Anyone using MP2004 ActiveX on Windows 64Bit

    Hi,

    Thank you for the feedback as it will benefit many others !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MP2004 - XYToLocation
    By AndyWood in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-05-2006, 11:13 AM
  2. Using MP2004 with Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 13
    Last Post: 03-02-2005, 08:50 AM
  3. Using S&T 2005 maps in MP2004
    By Fleet in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-18-2004, 01:54 PM
  4. need to check accuracy of MP2004
    By jaharris67 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-16-2004, 12:28 AM
  5. voice commands in MP2004
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-28-2004, 06:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66