PC Review


Reply
Thread Tools Rate Thread

Adding C#-Code to VB-Project in VS 2005 without using DLL

 
 
Sven Rutten
Guest
Posts: n/a
 
      19th Feb 2007
Hello

Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
Normally I creating a DLL and importing that from the VB-Project.

But as I am coding something for a Smart Device (PocketPC), I dont want to
distribute multiple files, I'd like to distribute a single EXE file.

I've learned that I can, since VS 2005, add C#-Code to a VB Project.
I can add it, but not use it. What am I doing wrong?

Thanks

Sven


 
Reply With Quote
 
 
 
 
Stephany Young
Guest
Posts: n/a
 
      19th Feb 2007
Seeing as how you have learned that you can, since VS 2005, add C#-Code to a
VB Project, would you please be so kind as to enlighten us. We would be most
interested.


"Sven Rutten" <sven (at) ruttensoft.com> wrote in message
news:eSoT%(E-Mail Removed)...
> Hello
>
> Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
> Normally I creating a DLL and importing that from the VB-Project.
>
> But as I am coding something for a Smart Device (PocketPC), I dont want to
> distribute multiple files, I'd like to distribute a single EXE file.
>
> I've learned that I can, since VS 2005, add C#-Code to a VB Project.
> I can add it, but not use it. What am I doing wrong?
>
> Thanks
>
> Sven
>


 
Reply With Quote
 
Sven Rutten
Guest
Posts: n/a
 
      19th Feb 2007
Hi Stephany

An Expert from experts-exchange.com told me so, but I cannot get it to
work...

Sven


"Stephany Young" <noone@localhost> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Seeing as how you have learned that you can, since VS 2005, add C#-Code to
> a VB Project, would you please be so kind as to enlighten us. We would be
> most interested.
>
>
> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
> news:eSoT%(E-Mail Removed)...
>> Hello
>>
>> Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
>> Normally I creating a DLL and importing that from the VB-Project.
>>
>> But as I am coding something for a Smart Device (PocketPC), I dont want
>> to distribute multiple files, I'd like to distribute a single EXE file.
>>
>> I've learned that I can, since VS 2005, add C#-Code to a VB Project.
>> I can add it, but not use it. What am I doing wrong?
>>
>> Thanks
>>
>> Sven
>>

>



 
Reply With Quote
 
Stephany Young
Guest
Posts: n/a
 
      19th Feb 2007
Now why does that not surprise me.

Not much of an expert was he?


"Sven Rutten" <sven (at) ruttensoft.com> wrote in message
news:O%(E-Mail Removed)...
> Hi Stephany
>
> An Expert from experts-exchange.com told me so, but I cannot get it to
> work...
>
> Sven
>
>
> "Stephany Young" <noone@localhost> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
>> Seeing as how you have learned that you can, since VS 2005, add C#-Code
>> to a VB Project, would you please be so kind as to enlighten us. We would
>> be most interested.
>>
>>
>> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
>> news:eSoT%(E-Mail Removed)...
>>> Hello
>>>
>>> Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
>>> Normally I creating a DLL and importing that from the VB-Project.
>>>
>>> But as I am coding something for a Smart Device (PocketPC), I dont want
>>> to distribute multiple files, I'd like to distribute a single EXE file.
>>>
>>> I've learned that I can, since VS 2005, add C#-Code to a VB Project.
>>> I can add it, but not use it. What am I doing wrong?
>>>
>>> Thanks
>>>
>>> Sven
>>>

>>

>
>


 
Reply With Quote
 
Sven Rutten
Guest
Posts: n/a
 
      19th Feb 2007
Actually he's the #1 ranked there :-)
But it's possible that I have misunderstood his answer...


"Stephany Young" <noone@localhost> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Now why does that not surprise me.
>
> Not much of an expert was he?
>
>
> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
> news:O%(E-Mail Removed)...
>> Hi Stephany
>>
>> An Expert from experts-exchange.com told me so, but I cannot get it to
>> work...
>>
>> Sven
>>
>>
>> "Stephany Young" <noone@localhost> schrieb im Newsbeitrag
>> news:(E-Mail Removed)...
>>> Seeing as how you have learned that you can, since VS 2005, add C#-Code
>>> to a VB Project, would you please be so kind as to enlighten us. We
>>> would be most interested.
>>>
>>>
>>> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
>>> news:eSoT%(E-Mail Removed)...
>>>> Hello
>>>>
>>>> Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
>>>> Normally I creating a DLL and importing that from the VB-Project.
>>>>
>>>> But as I am coding something for a Smart Device (PocketPC), I dont want
>>>> to distribute multiple files, I'd like to distribute a single EXE file.
>>>>
>>>> I've learned that I can, since VS 2005, add C#-Code to a VB Project.
>>>> I can add it, but not use it. What am I doing wrong?
>>>>
>>>> Thanks
>>>>
>>>> Sven
>>>>
>>>

>>
>>

>



 
Reply With Quote
 
Stephany Young
Guest
Posts: n/a
 
      19th Feb 2007
So, what did he ACTUALLY tell you?


"Sven Rutten" <sven (at) ruttensoft.com> wrote in message
news:(E-Mail Removed)...
> Actually he's the #1 ranked there :-)
> But it's possible that I have misunderstood his answer...
>
>
> "Stephany Young" <noone@localhost> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
>> Now why does that not surprise me.
>>
>> Not much of an expert was he?
>>
>>
>> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
>> news:O%(E-Mail Removed)...
>>> Hi Stephany
>>>
>>> An Expert from experts-exchange.com told me so, but I cannot get it to
>>> work...
>>>
>>> Sven
>>>
>>>
>>> "Stephany Young" <noone@localhost> schrieb im Newsbeitrag
>>> news:(E-Mail Removed)...
>>>> Seeing as how you have learned that you can, since VS 2005, add C#-Code
>>>> to a VB Project, would you please be so kind as to enlighten us. We
>>>> would be most interested.
>>>>
>>>>
>>>> "Sven Rutten" <sven (at) ruttensoft.com> wrote in message
>>>> news:eSoT%(E-Mail Removed)...
>>>>> Hello
>>>>>
>>>>> Actually I want to add some C#-Code to a VB.NET-Project in VS 2005.
>>>>> Normally I creating a DLL and importing that from the VB-Project.
>>>>>
>>>>> But as I am coding something for a Smart Device (PocketPC), I dont
>>>>> want to distribute multiple files, I'd like to distribute a single EXE
>>>>> file.
>>>>>
>>>>> I've learned that I can, since VS 2005, add C#-Code to a VB Project.
>>>>> I can add it, but not use it. What am I doing wrong?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Sven
>>>>>
>>>>
>>>
>>>

>>

>
>


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Feb 2007
"Stephany Young" <noone@localhost> schrieb:
> Seeing as how you have learned that you can, since VS 2005, add C#-Code to
> a VB Project, would you please be so kind as to enlighten us. We would be
> most interested.


You actually cannot, except in Web projects in which you can use different
languages in different script blocks and pages.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Feb 2007
"Stephany Young" <noone@localhost> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> So, what did he ACTUALLY tell you?


Well, maybe he was told that "it's possible to add C# code to a VB 2005
project", which is basically not wrong but on the other must not be
generalized.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      19th Feb 2007
Can't you have a solution that has multiple projects, and the projects can
be in different languages?

Robin S.
------------------------------------
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Stephany Young" <noone@localhost> schrieb:
>> Seeing as how you have learned that you can, since VS 2005, add C#-Code
>> to a VB Project, would you please be so kind as to enlighten us. We
>> would be most interested.

>
> You actually cannot, except in Web projects in which you can use
> different languages in different script blocks and pages.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



 
Reply With Quote
 
Stephany Young
Guest
Posts: n/a
 
      19th Feb 2007
You're right it must not be generalised.

Until the OP tells us what he was told we cannot determine if it was right,
wrong or indifferent.


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Stephany Young" <noone@localhost> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
>> So, what did he ACTUALLY tell you?

>
> Well, maybe he was told that "it's possible to add C# code to a VB 2005
> project", which is basically not wrong but on the other must not be
> generalized.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Converting VS 2005 Web Site Project to VS 2005 Web Application Project ITistic Microsoft ASP .NET 2 21st Aug 2007 09:56 PM
VS 2005 c#.net shared adding project for outlook BalajiGopalakrishnan via OfficeKB.com Microsoft Outlook Program Addins 3 8th Feb 2007 03:25 PM
[VISUAL STUDIO 2005] Unexpected problem when adding object datasource to project newsgroup.poster@gmail.com Microsoft C# .NET 2 28th Sep 2006 10:50 PM
Adding HTML code to project. =?Utf-8?B?SHVzYW0=?= Microsoft VB .NET 5 29th Mar 2006 06:10 PM
C# 2005 how to remove warning "The file 'C:\Main.cs' does not support code parsing or generation because it is not contained within a project that supports code. Serdge Kooleman Microsoft C# .NET 0 9th Feb 2006 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:26 AM.