Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual basic 4

Hello all,

 

I have project that is Visual Basic 4  16bit running on Win98

I have to run the same application over 32bit XP Windows.

I know it is possible to run 16bit applications over 32bit XP,

I added the missing dll-s, but however I did not manage following error:

 

Run-time error 367:

 

Can't load (or register) custom control in C:\WINDOWS\system\MHGFRM.VBX

 

Could somebody advice me how could I fix this...

 

Unfortanetly this is old stuff and there is not much info in the net for that....

0 Kudos
Message 1 of 3
(6,022 Views)

Also will be helpful, in case somebody can advice me,

I am using Visual Studio 2005 and I can't open the .vbp project file

Is there any way I can open the project, debug and compile....

in order to rewrite the code in case I can't run it over WIndows XP...

0 Kudos
Message 2 of 3
(6,017 Views)

Wow...haven't seen VB4 in quite some time!  First off, I should note that I don't believe that any of your code is using NI Measurement Studio or other NI controls for Visual Basic.  That said, I will still try to offer a little advice.

 

I don't know of an easy way to port your 16-bit VB4 code to Win32.  In theory, if you load your project into VB5 or VB6, most of the code should actually work ok.  Not much changed in the language syntax between those version.  What won't work, however, are most of your forms or other UI pieces.  With VB5, Microsoft moved away from using the old VBX controls in favor of embedding ActiveX controls (OCX) onto the forms.  

 

I'm not familiar with what the MHGFRM control even does.  There's not a lot of info on the web about it.  I did find an old product readme from a sybase product from back in 1996 that mentions it but as best as I can tell, they didn't own the component but rather also used it for some necessary parts of their UI.  

 

Either way, even if you had the control, my guess is that there's not a perfect port of it to an ActiveX control.  I don't see any way around rewriting that portion of the functionality.

 

With regards to your debugging question, the .vbp file won't open in VS 2005.  In VB5, Microsoft added the capability for VB to compile in debug symbols which made it possible to attach the Visual Studio debugger to a VB app and walk through the code but I don't think that support existing in VB4.

 

Good luck!

Jason 

 

0 Kudos
Message 3 of 3
(6,004 Views)