[Spam] [Mono-list] Compiling VB
A Rafael D Teixeira
rafael.teixeirabr at terra.com.br
Wed Aug 31 14:18:55 EDT 2005
Hi Paul,
inline
On Wed, 2005-08-31 at 01:08 +0100, Paul wrote:
> Hi,
>
> I have some downloaded VB here which comes in two parts, the form and
> the code. How do I compile them?
>
> TTFN
>
> Paul
Looks like old VB code instead of VB.NET, so mbas won't help you
(neither vbc). You need to compile and run it with VB6/VB6-runtime only
in windows.
Another possibility is to use the VB to VB.NET converter in Visual
Studio.NET, and obtain new VB.NET sources and projects, but it normally
doesn't do a good job as the original language and framework doesn't
give good enough clues.
The worst case is if you have the original code compiling to many VB
libraries. In that case it will happily generate worthless ActiveX
wrappers for all public classes, and reference them (doubly-wrapping) as
COM+ objects in the client code.
Nevertheless, for trivial forms in a monolithic app the converter does
generate passable Windows Forms versions, but again beware of any custom
or third-party ActiveX controls embedded in the design that will be
wrapped for use in the managed form, making it surely non-portable.
Good Luck
--
Rafael "Monoman" Teixeira
Mono Hacker since 16 Jul 2001 - http://www.mono-project.com/
Mono Brasil Founding Member - http://monobrasil.softwarelivre.org/
Simios Proud Member - http://www.simios.org/
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://www.simios.org/blog/monoman
More information about the Mono-list
mailing list