By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,369 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,369 IT Pros & Developers. It's quick & easy.

Manual Compile

P: n/a
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
/library:system.data.sqlclient

I also tried the following:
vbc /target:library DatabaseAccess.vb /library:system.data
/library:system.data.sqlclient

Private Sub AddParamter(ByVal ParmName As String, ByVal parmValue As
String,
ByVal cmd As SqlCommand, ByVal length As Integer)

Each time the errors produced look like the following....
~~~~~~~~~~
H:\Inetpub\wwwroot\Temp\DataBaseAccess.vb(494) : error BC30002: Type
'SqlParamet
er' is not defined.

Dim param As New SqlParameter(ParmName, parmValue)
~~~~~~~~~~~~
H:\Inetpub\wwwroot\Temp\DataBaseAccess.vb(496) : error BC30451: Name
'ParameterD
irection' is not declared.

param.Direction = ParameterDirection.Input
~~~~~~~~~~~~~~~~~~
vbc : error BC30041: Maximum number of errors has been exceeded.
Any Ideas how I should be compiling the program?????

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
use /reference instead of /library

"Jim Heavey" <An******@hotmail.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
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
/library:system.data.sqlclient

I also tried the following:
vbc /target:library DatabaseAccess.vb /library:system.data
/library:system.data.sqlclient

Private Sub AddParamter(ByVal ParmName As String, ByVal parmValue As
String,
ByVal cmd As SqlCommand, ByVal length As Integer)

Each time the errors produced look like the following....
~~~~~~~~~~
H:\Inetpub\wwwroot\Temp\DataBaseAccess.vb(494) : error BC30002: Type
'SqlParamet
er' is not defined.

Dim param As New SqlParameter(ParmName, parmValue)
~~~~~~~~~~~~
H:\Inetpub\wwwroot\Temp\DataBaseAccess.vb(496) : error BC30451: Name
'ParameterD
irection' is not declared.

param.Direction = ParameterDirection.Input
~~~~~~~~~~~~~~~~~~
vbc : error BC30041: Maximum number of errors has been exceeded.
Any Ideas how I should be compiling the program?????

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.