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

VB command line compiler vbc.exe AND type "Int32" is not defined

P: n/a
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

Apr 6 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Try vbc /imports:System /t:library /out:my_control.dll my_control.vb
<bo******@yahoo.com> wrote in message
news:11********************@g10g2000cwb.googlegrou ps.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

Apr 6 '06 #2

P: n/a
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

<bo******@yahoo.com> schreef in bericht
news:11********************@g10g2000cwb.googlegrou ps.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

Apr 6 '06 #3

P: n/a
mzp
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

<bo******@yahoo.com> schreef in bericht
news:11********************@g10g2000cwb.googlegrou ps.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


May 31 '06 #4

P: n/a
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

"mzp" <mz*@discussions.microsoft.com> schreef in bericht
news:88**********************************@microsof t.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

<bo******@yahoo.com> schreef in bericht
news:11********************@g10g2000cwb.googlegrou ps.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
>


Jun 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.