# Last version compatible VB6

**URL:** <https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276>\
**Category:** MapWinGIS\
**Created:** [March 11, 2022, 12:53pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276 "2022-03-11T12:53:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaoloM](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@PaoloM](https://mapwindow.discourse.group/u/PaoloM)\
**Post date:** [March 11, 2022, 12:53pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/1 "2022-03-11T12:53:20Z")

</div>

What is the latest version that can be used with VB6? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [March 11, 2022, 4:05pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/2 "2022-03-11T16:05:43Z")

</div>

Because it is an ActiveX control all versions should be compatible with VB6.

But do you really want to create a VB6 application?  
Can’t you move to [VB.NET](http://VB.NET). It will make your work much easier 😉

---

<div class="post-metadata">

**Author:** ![PaoloM](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@PaoloM](https://mapwindow.discourse.group/u/PaoloM)\
**Post date:** [March 12, 2022, 3:42pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/3 "2022-03-12T15:42:13Z")

</div>

i’m using Windows 7 and with version 4.9.x its all right.  
If I instal MapWingis 5.xx i don’t find Control in VB6.Components… How can i use it?

---

<div class="post-metadata">

**Author:** ![PaoloM](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@PaoloM](https://mapwindow.discourse.group/u/PaoloM)\
**Post date:** [March 12, 2022, 3:50pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/4 "2022-03-12T15:50:26Z")

</div>

> [@pmeems](#):
>
> Can’t you move to [VB.NET](http://VB.NET). It will make your work much easier

My project (wrote in many years work with MW 4.7…) is 20 forms, 15modules, 4calsses an 22userControl…  
conversion in [VB.NET](http://VB.NET) is not exatly “easier” 😉

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [March 12, 2022, 6:08pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/5 "2022-03-12T18:08:00Z")

</div>

Hello @PaoloM

I can’t say why it’s not showing up in the Components list. Even so, when opening an existing project that has a reference to an earlier version of a component, VB6 will automatically update the version within the Project and Form files. Since the GUIDs are the same, VB should see the newly installed OCX (although you may want to make sure the files are not read-only when you open them).

Another option might be to open the previous Project and Forms in a text editor, like Notepad or similar, and just add/change the references in the files.

Within the Project (vbp), you should see something like  
Object={C368D713-CC5F-40ED-9F53-F84FE197B96A}#5.2#0; MapWinGIS.ocx

and within the Form (frm), you should see something like  
Object = “{C368D713-CC5F-40ED-9F53-F84FE197B96A}#5.2#0”; “MapWinGIS.ocx”

Set the version number based on the OCX you have installed; just don’t enter a number that is higher than the version you have installed.

I hope that helps.  
Jerry.

---

<div class="post-metadata">

**Author:** ![FrankRadio](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@FrankRadio](https://mapwindow.discourse.group/u/FrankRadio)\
**Post date:** [March 13, 2022, 3:34pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/6 "2022-03-13T15:34:29Z")

</div>

Hi @PaoloM  
I was in the same situation. Register the OCX manually using regsvr32 as any other OCX/DLL you wrote in VB6

First unreg the old one and then register the new

---

<div class="post-metadata">

**Author:** ![PaoloM](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@PaoloM](https://mapwindow.discourse.group/u/PaoloM)\
**Post date:** [March 13, 2022, 11:34pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/7 "2022-03-13T23:34:36Z")

</div>

I.ve install MapWinGIS-only-v5.0.1.0-Win32 and execute : c:\dev\regsvr32 MapWinGis.ocx.  
I recive a message about compatibility in 32bit or 64bit and not resolve my problem.  
Can you expolain me your istallation sequence? 🙂

---

<div class="post-metadata">

**Author:** ![FrankRadio](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@FrankRadio](https://mapwindow.discourse.group/u/FrankRadio)\
**Post date:** [March 14, 2022, 5:20pm UTC](https://mapwindow.discourse.group/t/last-version-compatible-vb6/1276/8 "2022-03-14T17:20:07Z")

</div>

MapWinGIS-only-v5.3.0.0-Win32-VS2017 is the latest one  
And the reg command is:  
`regsvr32 C:\dev\MapWinGIS\MapWinGis.ocx`

or update this lines into regMapWinGIS.cmd

```auto
REM Unregister any previous versions:
regsvr32 /u C:\dev\MapWinGIS\MapWinGis.ocx
REM Register current version:
regsvr32 C:\dev\MapWinGIS\MapWinGis.ocx

```

you can use only the OCX name, but remember copy it into SYSTEM32 directory

registration complete:  
 ![1](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/0091e803b04641dd58b51d4abcec22978216af2a.png)

Map version at VB6  
 ![2](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/fb6dbd034cb995023452e351d23ff8cfd52124de.png)
