Results 1 to 6 of 6

Thread: Can vb.net code be integrated with c# code?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    29

    Can vb.net code be integrated with c# code?

    Hi

    we are going to develop a web application, one person is more familiar with vb, another one is more familar with c#, in the end we need to integrate them together, is this possible? easy?

    Many thinks

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    You can use a component compiled in VB in a C# project, and vice versa, but you can't mix the source code, no.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Familiarity compiles contempt.

    Using two separate DLLs to achieve the same thing brings in unnecessary complexity, if they need to interact. Familiarity in one language would imply familiarity in the other. I'm working in C# right now, although I'm pro-VB.NET. No problem yet has strangled me.

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    Re: Can vb.net code be integrated with c# code?

    In Visual Studio .NEXT (2005?) you will have the ability to have VB and C# code files in the same project. Right now, you need two seperate projects (one a vb, and the other a C#).

    I REALLY think that it is a horrible idea. The only way I would think about making that work would be to have the VB guy do all the form coding, and the C# guy doing a library on the back side that the form code talks to. That is proper seperation anyway, but damn, two different languages! UGHH!

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: Can vb.net code be integrated with c# code?

    Effectively they're nearly not separate languages though - they both compile to the same CLR.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Can vb.net code be integrated with c# code?

    Might as well code in MSIL then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width