473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

System DLLs runtime checking

Hi,

I am trying to clean out all the VB specific code in a project before
porting to C#. Having removed all the import references I still see the VB
runtime is loaded at startup. How can I pin down what is actually causing
the VB runtime still to load?

Thanks for any help.
Jon
Jul 21 '05 #1
5 1276
Jon,

You can delete using the project properties the reference too the
Microsoft.VisualBasic namespace in your project what unables you to use
classes from that namespace.

However that namespace is an integrated part of the Framework.

I am curious about your reason for that porting.
A VBNet project is easy to reference in a C# project and visa versa.

Cor

"jon morgan" <jo********@ntlworld.com>
Hi,

I am trying to clean out all the VB specific code in a project before
porting to C#. Having removed all the import references I still see the VB
runtime is loaded at startup. How can I pin down what is actually causing
the VB runtime still to load?

Thanks for any help.
Jon

Jul 21 '05 #2
Thanks Cor but I've done all this and the run time is still loaded.

I don't understand your comment about it being an integrated part of the
framework - do you mean its' automatically added to any VB project at
runtime even if no code uses VB specific functions and there are no import
references to the runtime ?

I intend porting my apps to C# simply to save my fingers from further
exposure to repetitive strain injury - there's just so much typing with VB
these days. I'm sad moving as I've been programming in basic since the
original Dartmouth Basic and all through VB's 1 to 6. But I guess time has
come to move on unless something really dramatic is afoot for Whidbey/VS
2005.

Regards
Jon
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can delete using the project properties the reference too the
Microsoft.VisualBasic namespace in your project what unables you to use
classes from that namespace.

However that namespace is an integrated part of the Framework.

I am curious about your reason for that porting.
A VBNet project is easy to reference in a C# project and visa versa.

Cor

"jon morgan" <jo********@ntlworld.com>
Hi,

I am trying to clean out all the VB specific code in a project before
porting to C#. Having removed all the import references I still see the
VB runtime is loaded at startup. How can I pin down what is actually
causing the VB runtime still to load?

Thanks for any help.
Jon


Jul 21 '05 #3
Jon,

I hope I understand you well.

The runtime is in the framework, what has to be on all computers what is the
same for C# and VBNet and all .Net programs, only the used code should be in
your exe. To see that you can use ILDASM.exe with the generated exe files.

(It is in one of this directorys of VS)
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin

That I asked you about why C# was just curiousity for myself. However in my
opinion is there more typing in a C# project than in a VBNet project. While
for the VBNet IDE there is a lot automatic, do you have to do in C# all by
hand. That is the major reason why I find at this moment VBNet nicer.

By instance this

dim dt as new datatable
'the cases are set automaticly right I hate to push every time the shift

is in C#

DataTable dt = new DataTable();
//and don't make a mistake, you can correct that at runtime.

However not important, I was just curious and answered your question.

Cor

"jon morgan" <jo********@ntlworld.com>
Thanks Cor but I've done all this and the run time is still loaded.

I don't understand your comment about it being an integrated part of the
framework - do you mean its' automatically added to any VB project at
runtime even if no code uses VB specific functions and there are no import
references to the runtime ?

I intend porting my apps to C# simply to save my fingers from further
exposure to repetitive strain injury - there's just so much typing with VB
these days. I'm sad moving as I've been programming in basic since the
original Dartmouth Basic and all through VB's 1 to 6. But I guess time has
come to move on unless something really dramatic is afoot for Whidbey/VS
2005.

Regards
Jon
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can delete using the project properties the reference too the
Microsoft.VisualBasic namespace in your project what unables you to use
classes from that namespace.

However that namespace is an integrated part of the Framework.

I am curious about your reason for that porting.
A VBNet project is easy to reference in a C# project and visa versa.

Cor

"jon morgan" <jo********@ntlworld.com>
Hi,

I am trying to clean out all the VB specific code in a project before
porting to C#. Having removed all the import references I still see the
VB runtime is loaded at startup. How can I pin down what is actually
causing the VB runtime still to load?

Thanks for any help.
Jon



Jul 21 '05 #4
Cor,

Thanks again for your help - much appreciated.

If you start up the VS IDE, create a new solution, add a new VB windows
application project and run it, the output window does not show the VB
runtime loading. To me that must mean that the VB runtime is not
automatically loaded .

To be clear the output window lists the runtime in my app. as
'c:\windows\assembly\gac\microsoft.visualbasic\7.0 .5000.0__b03f5f7f11d50a3a\microsoft.visualbasic.dl l'

Sorry to nag you on this but I really would like to nail the point.

Regards

Jon
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Jon,

I hope I understand you well.

The runtime is in the framework, what has to be on all computers what is
the same for C# and VBNet and all .Net programs, only the used code should
be in your exe. To see that you can use ILDASM.exe with the generated exe
files.

(It is in one of this directorys of VS)
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin

That I asked you about why C# was just curiousity for myself. However in
my opinion is there more typing in a C# project than in a VBNet project.
While for the VBNet IDE there is a lot automatic, do you have to do in C#
all by hand. That is the major reason why I find at this moment VBNet
nicer.

By instance this

dim dt as new datatable
'the cases are set automaticly right I hate to push every time the shift

is in C#

DataTable dt = new DataTable();
//and don't make a mistake, you can correct that at runtime.

However not important, I was just curious and answered your question.

Cor

"jon morgan" <jo********@ntlworld.com>
Thanks Cor but I've done all this and the run time is still loaded.

I don't understand your comment about it being an integrated part of the
framework - do you mean its' automatically added to any VB project at
runtime even if no code uses VB specific functions and there are no
import references to the runtime ?

I intend porting my apps to C# simply to save my fingers from further
exposure to repetitive strain injury - there's just so much typing with
VB these days. I'm sad moving as I've been programming in basic since the
original Dartmouth Basic and all through VB's 1 to 6. But I guess time
has come to move on unless something really dramatic is afoot for
Whidbey/VS 2005.

Regards
Jon
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Jon,

You can delete using the project properties the reference too the
Microsoft.VisualBasic namespace in your project what unables you to use
classes from that namespace.

However that namespace is an integrated part of the Framework.

I am curious about your reason for that porting.
A VBNet project is easy to reference in a C# project and visa versa.

Cor

"jon morgan" <jo********@ntlworld.com>
Hi,

I am trying to clean out all the VB specific code in a project before
porting to C#. Having removed all the import references I still see the
VB runtime is loaded at startup. How can I pin down what is actually
causing the VB runtime still to load?

Thanks for any help.
Jon



Jul 21 '05 #5
Jon,

Maybe this is easier,
I have created a clean VBNet windows form project did nothing and than build
it in release
I did the same with a C# project

I went to explorer and looked to the size
(That is in the directories program/obj/release)
VB was 6Kb
C# was 16Kb,

When you do that you can run those exe's

In my opinion are you looking at the dll's which are loaded for the building
process

I hope this gives some more idea's

Cor
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ramanujam R | last post by:
I'm trying to move a portion of our application to .NET from VC6 - the idea was to let most of the older DLLs still be compiled with VC6. As a first step just opened the project with VC7, and...
3
by: Clift Norris | last post by:
I've created a managed C++ assembly containing a managed class that is instantiated from ASP.NET. The managed C++ assembly needs msvcp71.dll and msvcr71.dll. When ASP.NET loads the assembly, it...
7
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put...
5
by: jon morgan | last post by:
Hi, I am trying to clean out all the VB specific code in a project before porting to C#. Having removed all the import references I still see the VB runtime is loaded at startup. How can I pin...
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
9
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as...
3
by: normanchong | last post by:
Hi, I'm currently developing an application for checking and doing some configurations for another application. During those checks, I have to access SQLServer to get configuration-info like...
6
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Using Visual Studio 2005, I have created 4 small DLLs that our company projects can use to access common tools included in each of the separate DLL files. Our Visual Studio 2005 applications...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.