473,545 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
4 4499
Try vbc /imports:System /t:library /out:my_control. dll my_control.vb
<bo******@yahoo .com> wrote in message
news:11******** ************@g1 0g2000cwb.googl egroups.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
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******** ************@g1 0g2000cwb.googl egroups.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
mzp
I'm having the same problem "cannot find" system.data.sql client...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.sql client

"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******** ************@g1 0g2000cwb.googl egroups.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
mzp,

The imports makes it possible that you write
dim con as new oledbconnection
instead of
dim con as new system.data.old edb.oledbconnec tion

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*@discussion s.microsoft.com > schreef in bericht
news:88******** *************** ***********@mic rosoft.com...
I'm having the same problem "cannot find" system.data.sql client...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.sql client

"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******** ************@g1 0g2000cwb.googl egroups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1671
by: Tom H. | last post by:
Newbie question, hopefully not one that will embarrass me. I'm reading Richter's Applied MS .NET Framework Programming and keep seeing snippets such as this: Int32 v = 5; Object o = v; Console.Writeline("{0}, {1}, {2}", o, o, o); in which it appears that code referencing an Object magically knows
1
1611
by: Joe | last post by:
I have data types stored in a field in a database and would like to use something similar to GetType when reading these values. string datatype = dr // something like this would be nice. ConvertStringToCorrectDataType(datatype); I guess I could just list all the string values of the data types and do a comparision but I thought there...
4
46407
by: LP | last post by:
Hi, My webservice is currently deployed on WIndows 2000 server and runs pretty fine. I am trying to run my webservice on a Windows 2003 server. My webservice tries to write to a eventlog. The code is as follows: System.Diagnostics.EventLog Log = new System.Diagnostics.EventLog( EventLogName ); Log.Source = EventLogName; Log.WriteEntry(...
1
4914
by: James Pose | last post by:
Convert.Int32 fails for "0" but works fine for all other numbers. This does not work on one machine when "0" it works fine on other machines Convert.ToInt32(“0”); gives exception {"Input string was not in a correct format."} If I specify base 10 this works on all machines Convert.ToInt32(“0”,10); So I have 3 related questions.
8
78080
by: Jeff S. | last post by:
I was recently advised: << Use List<struct> and Find() using different Predicate delegates for your different search needs.>> What is "Predicate delegate" as used in the above recommendation? Thanks.
1
541
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection" whenI try to write a new record. Delete and Modify work fine its just the add record function causes the error.
70
3319
by: garyusenet | last post by:
I'm using an example piece of code: - namespace Wintellect.Interop.Sound{ using System; using System.Runtime.InteropServices; using System.ComponentModel; sealed class Sound{ public static void MessageBeep(BeepTypes type){ if(!MessageBeep((UInt32) type)){ Int32 err = Marshal.GetLastWin32Error();
6
4584
by: =?Utf-8?B?SmVmZg==?= | last post by:
I thought this would already be covered here, but my search turned up nothing. In VS2005, if I use "String" to define a new variable/class, it colors it in the Aqua color as it does other classes. But if I use "string", it colors it in Navy blue as in C# reserved words (e.g. private, void, foreach, etc). What is the diff?
4
2886
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field is not a null value. I am not using any code behind (C#) to bind the data or manipulate the data. I have read that when there is a null value in...
0
7499
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.