vbc

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hi,
I'm using vbc in a dos window to compile my forms and classes into a
library.
Simple things like 'dataset' are not recognized. If I import system.data the
error disappears.
Do I have to put a complete list of imports into my forms and classes to
have vbc run ok? Or is there a simpler method?
Thanks
Frank
 
Hi Frank,

My expirience is that with VBC altough I set the import I have to use
OleDb.OleDbdataAdapter or SqlClient.SqlDataAdapter and thing like that.

I hope this helps?

Cor
 
Frank,
If you have VS.NET standard, you are doing too much work. :-(

As I stated yesterday, you can have VS.NET standard create with a
workaround, unfortunately I don't have the link to the workaround handy. You
might try searching groups.google.com


Remember that VS.NET both automatically references assemblies (vbc.exe
/reference) and automatically Imports namespaces (vbc.exe /imports).

If you want to use vbc.exe to compile you need to do one of the follow:
1. use /imports compile switch to import all the namespaces you want to use
2. use the Imports statement at the top of each source file.
3. use the fully qualified type name (System.Data.DataSet,
System.Data.SqlClient.SqlCommand).
4. use a partially qualified type name, if you used /imports on part of the
namespace "/imports System.Data" to allow SqlClient.SqlCommand.

For details on the compile options availble.
http://msdn.microsoft.com/library/d...blr7/html/vaoriVisualBasicCompilerOptions.asp

However! its probably easier to take 20 or 30 minutes to find the work
around on groups.google.com.

http://groups.google.com/groups?q="...=#[email protected]&rnum=8

Hope this helps
Jay
 
* "Frank said:
I'm using vbc in a dos window to compile my forms and classes into a
library.
Simple things like 'dataset' are not recognized. If I import system.data the
error disappears.
Do I have to put a complete list of imports into my forms and classes to
have vbc run ok? Or is there a simpler method?

Open the console and type "vbc", then press return. Have a look at the
'/reference' and '/imports' options.
 
Back
Top