Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Oct 21, 2019 10:44 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Import VB6 project doesn't work
PostPosted: Sat Dec 04, 2010 9:24 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Hello all!

For some reason, after performing the import sequence per the readme file, there is never any indication that the conversion is done - although the xml file is created. The converter does not start RS automatically and when I try to open the project (which is successful) there are none of the forms or objects that were in the original VB6 code presented.

What am I doing wrong?

Thank you!
Tim


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Sun Jan 02, 2011 7:58 am 
Offline

Joined: Sun Jan 02, 2011 7:53 am
Posts: 6
I am getting the same problem. I hope someone is able to help in this ...


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Tue Jan 04, 2011 10:36 am 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
Same problem here.

I am using RS2010R5.1 on Windows 7 and the latest VB Migration Assistant.

Someone could make it work recently?

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Tue Jan 04, 2011 4:44 pm 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
Actually, it seems to work with some projects. I have just downloaded a very simple one (http://www.visualbasic6class.com/combo.zip) and the migration assistant does a very good job.

However, it did not work at all on this project here:http://www.lvr.com/files/usbhidio2.zip

I could read the VB6 code directly from the source files of the USBHIDIO2 project and that's ok for for me right now, but I think it would be good to know why some projects do not migrate at all (I see no code, no window, nothing when I open the xml file the VBMA is creating in the RealBasic IDE).

Any ideas? Thank you.

Pixe

_________________
Using RS2011r4.3 on Windows7.


Last edited by pixe656 on Wed Jan 05, 2011 4:07 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Tue Jan 04, 2011 6:12 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
I would create a Feedback report along with the VB6 source (if you can) so the engineers can duplicate the issue. VBMA is a very lightweight tool and don't really convert much. It's almost easier, IMO, to start from scratch, and in fact do that with any conversion projects we get.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Wed Jan 05, 2011 4:19 am 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
OK, I created the feedback case: 15358

Quote:
It's almost easier, IMO, to start from scratch, and in fact do that with any conversion projects we get.

Probably you are right.

I just wanted to look at the API calls and how they are used in that project to see if I can do the same in RB and I didn't want to install VB6 (which I have, but I would not like to use again) just to open the project. Finally I opened the vbp and bas files using a text editor, but although in that way I see the API calls it is more difficult to follow the sequence of code/events.

Pixe

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Wed Jan 05, 2011 10:10 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Well, VBMA doesn't convert ANY code. It imports it and immediately comments it out. It attempts (with some accuracy) to put it in the proper events but even that's not foolproof.

It's been my experience that you will need SOME API calls but not many. And those that you do need will mostly likely be fairly common. I suggest taking a look at the Windows Functionality Suite at http://arbpmembers.org/windows-functionality-suite since it has the biggest collection of Windows declares that I know of.

As far as converting from VB6 to RB there are many similarities until you get into file I/O and database operations. Since those are generally important areas I'd highly recommend writing that code from scratch anyway and learn the RB way.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Wed Jan 05, 2011 4:28 pm 
Offline

Joined: Sat Apr 25, 2009 4:08 am
Posts: 237
Bob Keeney wrote:
I would create a Feedback report along with the VB6 source (if you can) so the engineers can duplicate the issue. VBMA is a very lightweight tool and don't really convert much. It's almost easier, IMO, to start from scratch, and in fact do that with any conversion projects we get.


Impossible question, probably, but do you have any rules of thumb about how many man hours a conversion job will require?
I found the vbconvert! tool to be far better than the vbma but for anything other than trivial projects the time investment looks to be enormous.

_________________
RB 2012 Release 2.1 Personal edition (Windows)


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Wed Jan 05, 2011 4:40 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
You're right, it's an impossible question. When we look at conversions we look at the complexity of each window and class and make some guestimates based on that. We know that a simple window/class takes x hours, medium y hours and a complex one z hours. Add it all up and hope you didn't overlook something big.

VBConvert attempts to convert code and did a reasonable job (AFAIK it's no longer available for sale). But since you pretty much have to look at every line of code to make sure it works we found that it didn't help us all that much and in some cases made it harder. While VB and RB have 'basic' in the name, they are completely different beasts.

I've heard that the commercial VB6 to .NET conversion services can charge as much at $1 PER line of code. After doing conversions for years (to RB) it is a reasonable yard stick. Bottom line is that a big, hairy VB6 project will still be a big, hairy RB project.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Thu Jan 06, 2011 5:26 am 
Offline

Joined: Sat Apr 25, 2009 4:08 am
Posts: 237
Thanks Bob, I was interested to hear your take on migrating code

Bob Keeney wrote:
I've heard that the commercial VB6 to .NET conversion services can charge as much at $1 PER line of code. After doing conversions for years (to RB) it is a reasonable yard stick.


I dunno Bob, this suggests it might be cheaper to pay an hourly rate :

Quote:
Port Your Code
Porting your applications from Visual Basic to REAL Studio is a straightforward process. REAL Software provides a Visual Basic Migration Assistant that will help you in the process. Most developers find that their projects port in hours or days, rather than weeks or months required in other environments.


:lol:

POI: the migration wizard in VB2008 is pretty good (and a big improvement over earlier incarnations), making that a far easier port than to RB.

_________________
RB 2012 Release 2.1 Personal edition (Windows)


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Thu Jan 06, 2011 11:27 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Marketing-speak and reality often don't mix. :)

Since VBMA doesn't convert any code you're essentially rewriting it anyway. Where VBMA *might* save you some time is converting all the forms layouts over to RB Windows. But since most VB programs have 3rd party controls that don't match what RB has it's a crap shoot on how well those will convert anyway. As with anything technology related, YMMV.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Thu Jan 06, 2011 3:58 pm 
Offline
User avatar

Joined: Sun May 28, 2006 12:04 am
Posts: 67
Location: Lakewood, NJ
I did manage to get hold of a copy of VBConvert!.

The biggest factor is that it does convert the forms layout very well, at least for the non-3rd-party controls. The labels wind up in the right positions on the RB forms.

The code conversion wasn't bad either. But, you do have to go over it line by line.

Another big time saver was the ability to include error handlers in each converted procedure/event.

Basically, you just start including the forms/modules one at a time. After checking/modifying and getting the project to run, you load the next form/module and repeat to the end of the project.

No matter the route, it does take a long time.


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Thu Jan 06, 2011 4:32 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
I think it's a shame that VBConvert is no longer for sale. It did some nice things and IMO does not really compete with VBMA.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Thu Jan 06, 2011 5:05 pm 
Offline
User avatar

Joined: Sun May 28, 2006 12:04 am
Posts: 67
Location: Lakewood, NJ
I really don't know why REAL didn't buy it and provide it as a tool, as it far surpasses their own attempt.


Top
 Profile  
Reply with quote  
 Post subject: Re: Import VB6 project doesn't work
PostPosted: Fri Jan 07, 2011 5:57 pm 
Offline

Joined: Sat Apr 25, 2009 4:08 am
Posts: 237
The developer of vbconvert came across very well in the emails I had from him. He's also a very able programmer. I suspect he felt a bit undermined by REAL's decision to bring out their free vbma at the same time as he brought out his very reasonably priced ($65) product. It can't have helped his sales any.

_________________
RB 2012 Release 2.1 Personal edition (Windows)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group