Manual Compile

J

Jim Heavey

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?????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top