Re: VB language extensions wishlist
- From: Pavel Minaev <int19h@xxxxxxxxx>
- Date: Sun, 17 Feb 2008 12:55:49 -0800 (PST)
On Feb 17, 4:43 pm, "Schmidt" <s...@xxxxxxxxx> wrote:
But if I understand you correctly, we will end up with "only"
a (compilable) C++-Project - debugging such a project
(break-points, etc.) would end up in looking at C++-
Code, right?
Not really. There are ways to handle debugging for such generated
code. In fact, commercial compilers for quite a few languages output
C, and provide an IDE to seamlessly debug it; for a good example, have
a look at EiffelStudio.
COM is (mainly) VTable-Handling using TypeLib-Defined
"Method-Headers". A language, which supports pointers
and calling functions from pointers should be suitable -
and FreeBasic supports that.
It's all the things that go behind the scenes. Reference counting for
everything, transparent handling of casts via QueryInterface, error
handling (this one is really a mess in VB, if you consider all the
possibilities, including "On Error GoSub ...") etc.
I'd love to see that happen that fast, but what do you expect would
be the necessary environment for us, to compile a *.vbp?
Would we have to install the VC++-Express-Version or something
like that in a first step?
The easiest way would be to use GCC, or rather, its MingW port to
Windows. There's no reason why it can't be properly prepackaged,
either. Ideally, you wouldn't even know or care that there is a C
compiler working in between your VB code and the resulting .exe - and
this has been done before for other languages, so it is certainly
doable.
Are you sure - I'm talking about emitting a *.tlb directly
from Basic-Code - you are probably talking about
creating a Midl-compileable *.idl-Textfile.
No, I'm talking about directly generating a .tlb. There's no magic in
MIDL that does it - it's the standard Automation API function
CreateTypeLib which does the trick.
Anyway - would be glad, if you'd take a serious look
at what FreeBasic in its current incarnation has to offer.
Sure, I'll take a closer look at what's there to reuse.
.
- References:
- VB language extensions wishlist
- From: Pavel Minaev
- Re: VB language extensions wishlist
- From: Ulrich Korndoerfer
- Re: VB language extensions wishlist
- From: Steve Gerrard
- Re: VB language extensions wishlist
- From: Schmidt
- Re: VB language extensions wishlist
- From: Pavel Minaev
- Re: VB language extensions wishlist
- From: Schmidt
- VB language extensions wishlist
- Prev by Date: Re: VB6 works fine on XP but not Vista - Error 445
- Next by Date: Re: PrintForm method, no controls print
- Previous by thread: Re: VB language extensions wishlist
- Next by thread: Re: VB language extensions wishlist
- Index(es):
Relevant Pages
|
Loading