Solved

Command Line Compiler Errors: Compile a form as a dll

Posted on 2004-08-23
9
247 Views
Last Modified: 2010-07-27
I have created a form that I use when running tasks that gives the user a progress bar and feedback. Works very well when the form is incorporated into a project and instantiated from there. I would like to compile it - via the command line - to be a dll. I have tried several times to do this, and have got to 2 errors that I am unable to resolve:

1.Error: BC30002 Type 'INT32' is not defined.
2.Error: BC30451 Name 'Application' is not declared.

I have done a lot of research and I have found that I am referencing all of the correct assemblies needed to compile from the command line. The command I use is as follows:

vbc /traget:library /out:BusyBar.dll /reference:System.dll,System.Data.dll,System.Drawing.dll,System.Windows.Forms.dll,System.XML.dll frmBusy.vb

I would appreciate any help or feedback that could be offered.
0
Comment
Question by:whittinga2
  • 4
  • 4
9 Comments
 
LVL 3

Expert Comment

by:DJ_Back-Q
Comment Utility
First change this "/traget" for this "/target"
0
 
LVL 3

Expert Comment

by:DJ_Back-Q
Comment Utility
Second looks like you might be missing a reference.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
Comment Utility
I think your missing    microsoft.visualbasic.vsa.dll
0
 

Author Comment

by:whittinga2
Comment Utility
DJ Back-Q: Thank you for pointing out my spelling mistake - I can assure you I have not typed that into the compile command. What would the reference that is missing?

RonaldBiemans: I tried your suggestion and I still have the same errors.

I can see the application object in the system.windows.foms refernece in the object browser. I can also see the Int32 data type in mscorlib system namespace. I am at a loss.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Expert Comment

by:DJ_Back-Q
Comment Utility
Then your missing a reference to the mscorlib namespace.
0
 

Author Comment

by:whittinga2
Comment Utility
DJ Back-Q: Sorry - I've tried that before experts exchange.
0
 
LVL 3

Accepted Solution

by:
DJ_Back-Q earned 250 total points
Comment Utility
Well I can assure you that your command line is well former, the only problem is that your are missing a reference or your code has something wrong.

Do you use Visual Studio??
0
 

Author Comment

by:whittinga2
Comment Utility
DJ Back-Q: I am using VB .Net Standard. I have read several articles and I am assurred that with the SDK that you can do everything that is possible in studio - only without the GUI. I have developed the form in studio and would like to compile it to a DLL for distribution.
0
 

Author Comment

by:whittinga2
Comment Utility
I have been able to solve my problem. I remember reading an article stipulating that in some cases the whole class or object has to be refernced through its complete namespace. I changed a reference to the Application.DoEvents object method to System.Windows.Forms.Application.DoEvents this eliminated this error. I also did the same for the Int32 datatype and declared the parameters as System.Int32. I thinks this arises because of the fact that both are objects - even the data type declaration.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now