473,322 Members | 1,538 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,322 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 1875
> 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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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...

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.