Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Mixing VB & C# in the same DLL

Reply
Thread Tools

Mixing VB & C# in the same DLL

 
 
gg
Guest
Posts: n/a
 
      11-28-2004
Hi,

I'm sure this must be one of the most popular questions...

I've developed the application in VB and have some C# code which I want to
incorporate. Visual Studio seems to allow you either a VB or C# project,
neither of which can contain files from the other language. The official
method of combining languages is to create two projects under the same
solution, one for the VB code, one for the C# code. This seems pants.

How do you mix VB and C# AND compile into a SINGLE dll?


TIA,
Glenn


 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      11-28-2004
"gg" <> wrote in message news:cob7ne$c6v$...

> How do you mix VB and C# AND compile into a SINGLE dll?


You don't - you wait for VS.NET 2005...


 
Reply With Quote
 
 
 
 
Glenn
Guest
Posts: n/a
 
      11-28-2004

"Mark Rae" <> wrote in message
news:...
> "gg" <> wrote in message news:cob7ne$c6v$...
>
>> How do you mix VB and C# AND compile into a SINGLE dll?

>
> You don't - you wait for VS.NET 2005...


And then wait for VS 2007 - 'cos they forgot to add something else, then
wait for VS 2009 'cos they forgot to add something else.....

It's never ending. Why don't we all just send Microsoft our first born and
get on with it.

Just as a point, I'm still developing stuff with VS2002 -- I couldn't see
the point in paying those scumbags any money for 'new features' that I don't
need. In any case, they should have released VS2003 as a service pack.


Glenn


 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      11-28-2004
"Glenn" <> wrote in message
news:cocij4$se5$...

>>> How do you mix VB and C# AND compile into a SINGLE dll?

>>
>> You don't - you wait for VS.NET 2005...

>
> And then wait for VS 2007 - 'cos they forgot to add something else, then
> wait for VS 2009 'cos they forgot to add something else.....


Yeah - they got the internal combustion engine right at the first attempt...

> It's never ending. Why don't we all just send Microsoft our first born
> and get on with it.


You are, truly, a cretin.


 
Reply With Quote
 
Glenn
Guest
Posts: n/a
 
      11-29-2004
> You are, truly, a cretin.
I see. So by actually questioning the basis of what MS has to offer makes
me an idiot?

I guess you would have voted for Bush's second term given the chance?

Now, to answer my original question, we can do the linking into a single
DLL. It looks as if an open source utility (that's a non MS one, so it
*must* be crap to certain people): NAnt is a free .NET build tool. In
theory it is kind of like make without make's wrinkles.
http://nant.sourceforge.net/

Pity MS couldn't develop VS to do this in the first place as it would make
the cross-over from VB to C# or back much easier for all of us.


Glenn


 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      11-29-2004
"Glenn" <> wrote in message
news:codt1b$g8n$...

> I guess you would have voted for Bush's second term given the chance?


I rejoice every day in the fact that I'll never be eligible to vote in an
American election...


 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      11-29-2004
> And then wait for VS 2007 - 'cos they forgot to add something else, then
> wait for VS 2009 'cos they forgot to add something else.....
>
> It's never ending. Why don't we all just send Microsoft our first born

and
> get on with it.


Only a poor developer blames the development software for their own
limitations. I can remember writing C programs using a shareware
command-line compiler that used Kernigan-Ritchie C code. Don't ever remember
complaining about the compiler software, though. Didn't seem helpful to the
task.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Glenn" <> wrote in message
news:cocij4$se5$...
>
> "Mark Rae" <> wrote in message
> news:...
> > "gg" <> wrote in message news:cob7ne$c6v$...
> >
> >> How do you mix VB and C# AND compile into a SINGLE dll?

> >
> > You don't - you wait for VS.NET 2005...

>
> And then wait for VS 2007 - 'cos they forgot to add something else, then
> wait for VS 2009 'cos they forgot to add something else.....
>
> It's never ending. Why don't we all just send Microsoft our first born

and
> get on with it.
>
> Just as a point, I'm still developing stuff with VS2002 -- I couldn't see
> the point in paying those scumbags any money for 'new features' that I

don't
> need. In any case, they should have released VS2003 as a service pack.
>
>
> Glenn
>
>



 
Reply With Quote
 
=?Utf-8?B?U2NvdHQgU2ltb25z?=
Guest
Posts: n/a
 
      11-29-2004
I know I shouldn't feed the trolls. But, you didn't by any chance notice
that at least one microsoft employee contributed code to NAnt did you? Also,
I've seen multiple MS employees discuss NAnt and NUnit as useful tools.
 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      11-29-2004
"Kevin Spencer" <> wrote in message
news:%...

Kevin,

> Only a poor developer blames the development software for their own
> limitations.


Don't even bother - some idiots will never be happy....


 
Reply With Quote
 
Amar
Guest
Posts: n/a
 
      11-30-2004
I don't know if it is possible to have both languages at the same dll
and use classes, but it is possible if you interested to have at the
same project .aspx pages with both languages.

"gg" <> wrote in message news:<cob7ne$c6v$>...
> Hi,
>
> I'm sure this must be one of the most popular questions...
>
> I've developed the application in VB and have some C# code which I want to
> incorporate. Visual Studio seems to allow you either a VB or C# project,
> neither of which can contain files from the other language. The official
> method of combining languages is to create two projects under the same
> solution, one for the VB code, one for the C# code. This seems pants.
>
> How do you mix VB and C# AND compile into a SINGLE dll?
>
>
> TIA,
> Glenn

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QUERY: Mixing ASP.NET 1.1 & 2.0 pages in same website dhruba.bandopadhyay ASP .Net 0 04-28-2006 02:28 PM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57