Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 15, 2017 3:16 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Call VB6 from RealBasic or RealBasic from VB6 - easier?
PostPosted: Sat May 04, 2013 6:11 pm 
Offline

Joined: Fri Oct 28, 2011 12:41 am
Posts: 11
Friends, we plan to convert a large program from VB6 to RealBasic, but need to do it in stages (or else the conversion won't happen). The plan is to have a mixture of VB6 and RealBasic subroutines. The question is: which is easier -to call RB subroutines from VB6 code, or to call VB6 subroutines from RB code? We welcome practical advice about how to proceed :?

_________________
Mike Linacre


Top
 Profile  
Reply with quote  
 Post subject: Re: Call VB6 from RealBasic or RealBasic from VB6 - easier?
PostPosted: Sat May 04, 2013 11:57 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
About the only way to call RB code from VB6 is to compile the RB code into a console app .EXE and call it with a Shell, passing it command line parameters and reading back Print lines from the RB console app.

You can compile the VB6 routines into a .DLL and call them directly from RB via Declares.

So I'd say it's easier to call VB6 routines from RB.


Top
 Profile  
Reply with quote  
 Post subject: Re: Call VB6 from RealBasic or RealBasic from VB6 - easier?
PostPosted: Sun May 05, 2013 7:15 pm 
Offline

Joined: Fri Oct 28, 2011 12:41 am
Posts: 11
Thanks, Tim, exactly what we needed to hear.

On another project, we are already Shelling to RB from FORTRAN using disk work files to pass data back and forth. We have also tried using VB6 .DLLs called from FORTRAN. They work, but are a challenge. So on this project we will probably go the Shell-to-RB route.

_________________
Mike Linacre


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

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