473,378 Members | 1,444 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,378 software developers and data experts.

Manual Compiling

Hello, trying to round out my knowlege here about compiling. To date I
have used VS.Net to do all my compiling "majically", but I want to
understand how to do it on my own, should the need ever arrise.

It has been suggested to me that I should use the following pattern when
compiling my programs, but I am not sure I understand the "pattern",

Try creating a text file along the following lines where the /r are the
dlls
you are importing. (this may take some time to get right) then do vbc
@yourtextfile at dos prompt. The following should be on one line.

/t:library /out:c:\pathtobin\nameof.dll c:\pathtofile\name.vb
/r:system.dll
/r:system.web.dll /r:system.xml.dll /r:system.data.dll

So I am trying to translate this suggestion...

Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct?

When I do as suggested on a "helper/utility class" (used by other
classes), I get errors like the following:

error BC30420: 'Sub Main' was not found in 'Compile_DatabaseAccess'.
error BC30188: Declaration expected (underlining the following:
/r:Microsoft.VisualBasic and /r:System.Collections)

This error is followed by several pages of "BC30188: Declaration
expected".

Here is the text file I created per the suggestion above...

/t:library /out:H:\Temp\TempASP.NET\DataBaseAccess.dll H:\Temp
\TempASP.NET\DataBaseAccess.vb /r:system.dll /r:system.web.dll
/r:system.xml.dll /r:system.data.dll /r:Imports System.Data.SqlClient
/r:System.Web.UI /r:System.Web.UI.WebControls /r:Microsoft.VisualBasic
/r:System.Configuration /r:System.Collections

Any Ideas what I am doing wrong?
Nov 18 '05 #1
1 1879
> Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct? no. objects are not imported only assemblies via their namespace.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16... Hello, trying to round out my knowlege here about compiling. To date I
have used VS.Net to do all my compiling "majically", but I want to
understand how to do it on my own, should the need ever arrise.

It has been suggested to me that I should use the following pattern when
compiling my programs, but I am not sure I understand the "pattern",

Try creating a text file along the following lines where the /r are the
dlls
you are importing. (this may take some time to get right) then do vbc
@yourtextfile at dos prompt. The following should be on one line.

/t:library /out:c:\pathtobin\nameof.dll c:\pathtofile\name.vb
/r:system.dll
/r:system.web.dll /r:system.xml.dll /r:system.data.dll

So I am trying to translate this suggestion...

Any object in which I am specifying an "Imports" statement (VB.Net) in
my program is a "dll". Is this correct?

When I do as suggested on a "helper/utility class" (used by other
classes), I get errors like the following:

error BC30420: 'Sub Main' was not found in 'Compile_DatabaseAccess'.
error BC30188: Declaration expected (underlining the following:
/r:Microsoft.VisualBasic and /r:System.Collections)

This error is followed by several pages of "BC30188: Declaration
expected".

Here is the text file I created per the suggestion above...

/t:library /out:H:\Temp\TempASP.NET\DataBaseAccess.dll H:\Temp
\TempASP.NET\DataBaseAccess.vb /r:system.dll /r:system.web.dll
/r:system.xml.dll /r:system.data.dll /r:Imports System.Data.SqlClient
/r:System.Web.UI /r:System.Web.UI.WebControls /r:Microsoft.VisualBasic
/r:System.Configuration /r:System.Collections

Any Ideas what I am doing wrong?

Nov 18 '05 #2

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

Similar topics

2
by: Bob Reynolds | last post by:
Hello, I have a requirement to create EAR and WAR packages without using the integrated package building tools built into the IDE. The packages will be created via a deployment script,...
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
2
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One...
1
by: Jim Heavey | last post by:
I am attempting to understand how to compile programs outside of the IDE. I attemtped to compile my program as follows: vbc /target:library DatabaseAccess.vb /library:system.data...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
1
by: David | last post by:
I am attempting to deploy a ASP.NET app on a 3rd party hosting system. I only have FTP access to add files, etc. I tried using the Project copy portion and point to the FTP server, but VS did not...
0
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
I want to learn how to do a manual compile. I found an article on the web which indicated that you can create a response file and then use that response file to do the compile. I was wondering if...
0
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help compiling code dynamically it may involve some reflection so if any one is any good in that field or compiling code this would be a great time to show me what you know. by the way my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.