Re: How easy is it to learn VB compared to C#?



On Thu, 29 May 2008 19:37:00 +0000 (UTC), Rory Becker
<rorybecker@xxxxxxxxxxxxxxxx> wrote:

Hello Joergen,

I write mainly in VB.Net, but sometimes I just need to use
those darn unsafe pointers (for just a few functions) and
there is no substitute (that I know of) for those in VB.Net
so I have to create a separate project/dll and use ILMerge
in a post-compilation step if I do not want to distribute yet
another dll :(
/Joergen Bech

Annoying isn't it.

Someone correct me if I'm wrong....

Isn't XAML another language whose forms are compiled into the dll along with
C# Or VB.Net?

Surely XAML compilation isn't done by both CSC and VBC?

Isn't there a middle tier to the compilation already somewhere?

XAML is compiled into BAML using xamlc.exe. At the same
time, this compiler generates a partial class using your favorite
language. This partial class includes fields for the window,
code loading the BAML, code that connects handlers, etc.
After that, the csc or vbc takes over.

Well, at least that was how it used to be. I believe it is
all handled by MSBuild nowadays, but similar stuff happens
behind the scenes.

Regards,

Joergen Bech



.



Relevant Pages

  • Re: More info on cross-platform .NET
    ... includes a cross-platform CLR able to execute .NET IL, ... compilation. ... Your article you say, "Under the hood, XAML applications are also .NET ... to IL (Intermediate Language) and executed by the Common Language Runtime" ...
    (borland.public.delphi.non-technical)
  • Re: overiding onwndmsg?
    ... For example, in a CFormView, the menu handlers in one file ... You just include the appropriate .h file in each compilation. ... In the Microsoft editor, "Edit ... Note that none of this requires you go outside the basic MFC mechanisms. ...
    (microsoft.public.vc.mfc)
  • Re: [Glade 2] Compilatrion problems
    ... > I've made the .glade xml file, ... > compilation with cc raises error: ... Just use C, or make your handlers ...
    (comp.os.linux.development.apps)