|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB command line compiler vbc.exe AND type "Int32" is not definedHi All,
I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to re-compile it with command line compiler vbc.exe like this: vbc /t:library /out:my_control.dll my_control.vb However vbc doesn't work with error "type 'Int32' is not defined" Your help would be greatly appreciated! Thanks, Bob Try vbc /imports:System /t:library /out:my_control.dll my_control.vb
<bob95***@yahoo.com> wrote in message Show quoteHide quote news:1144286544.367172.6410@g10g2000cwb.googlegroups.com... > Hi All, > > I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to > re-compile it with command line compiler vbc.exe like this: > vbc /t:library /out:my_control.dll my_control.vb > > However vbc doesn't work with error "type 'Int32' is not defined" > > Your help would be greatly appreciated! > > Thanks, > > Bob > Bob,
You need for VBC to set all the librarys and references that are used. Those are set in Visual Studio Net for VB already set in the project properties. Cor <bob95***@yahoo.com> schreef in bericht Show quoteHide quote news:1144286544.367172.6410@g10g2000cwb.googlegroups.com... > Hi All, > > I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to > re-compile it with command line compiler vbc.exe like this: > vbc /t:library /out:my_control.dll my_control.vb > > However vbc doesn't work with error "type 'Int32' is not defined" > > Your help would be greatly appreciated! > > Thanks, > > Bob > I'm having the same problem "cannot find" system.data.sqlclient...I did the
/imports switch ie. vbc /imports:system.data.sqlclient...and still get error that vbc cant find Namespace or type sqlclient for the imports system.data.sqlclient Show quoteHide quote "Cor Ligthert [MVP]" wrote: > Bob, > > You need for VBC to set all the librarys and references that are used. Those > are set in Visual Studio Net for VB already set in the project properties. > > Cor > > <bob95***@yahoo.com> schreef in bericht > news:1144286544.367172.6410@g10g2000cwb.googlegroups.com... > > Hi All, > > > > I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to > > re-compile it with command line compiler vbc.exe like this: > > vbc /t:library /out:my_control.dll my_control.vb > > > > However vbc doesn't work with error "type 'Int32' is not defined" > > > > Your help would be greatly appreciated! > > > > Thanks, > > > > Bob > > > > > mzp,
The imports makes it possible that you write dim con as new oledbconnection instead of dim con as new system.data.oldedb.oledbconnection To use that you have to set a reference to that system.data http://msdn2.microsoft.com/en-us/library/c03639ab.aspx I hope this helps, Cor Show quoteHide quote "mzp" <m**@discussions.microsoft.com> schreef in bericht news:88B511E7-74EB-43A1-A570-01A21D2D937F@microsoft.com... > I'm having the same problem "cannot find" system.data.sqlclient...I did > the > /imports switch ie. vbc /imports:system.data.sqlclient...and still get > error > that vbc cant find Namespace or type sqlclient for the imports > system.data.sqlclient > > "Cor Ligthert [MVP]" wrote: > >> Bob, >> >> You need for VBC to set all the librarys and references that are used. >> Those >> are set in Visual Studio Net for VB already set in the project >> properties. >> >> Cor >> >> <bob95***@yahoo.com> schreef in bericht >> news:1144286544.367172.6410@g10g2000cwb.googlegroups.com... >> > Hi All, >> > >> > I wrote a VB.NET control in Visual Studio 2003 IDE, I am trying to >> > re-compile it with command line compiler vbc.exe like this: >> > vbc /t:library /out:my_control.dll my_control.vb >> > >> > However vbc doesn't work with error "type 'Int32' is not defined" >> > >> > Your help would be greatly appreciated! >> > >> > Thanks, >> > >> > Bob >> > >> >> >>
Startup Form's Name
populating variables from dynamically created controls Drawing xor lines multiple selection from checkboxes into text box how do I customize a vb.net deployment project Mixing languages in one assembly Inherited UserControls do not in appear in Toolbox (VB.NET 2005) Textbox 'remembering' previous entries Visual Basic 2005 Express SQL Server Locks/ProcessID - Is this a problem? |
|||||||||||||||||||||||