Microsoft Visual Basic 6.0 for PC Logo
Posted on Feb 17, 2011
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Can you give an example of compiler using vb?

1 Answer

Anonymous

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Master 526 Answers
  • Posted on Feb 17, 2011
Anonymous
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Feb 09, 2011
Answers
526
Questions
2
Helped
104392
Points
1770

Dim parameters As New CompilerParameters() Dim results As CompilerResults parameters.GenerateExecutable = True parameters.OutputAssembly = Output results = icc.CompileAssemblyFromSource(parameters, SourceText)
The code above uses the CompilerParameters object to tell the compiler that you want to generate an executable file (as opposed to a DLL) and that you want to output the resulting assembly to disk. The call to CompileAssemblyFromSource is where your assembly gets compiled. This method takes your parameters object and the source code, which is a string. Once you compile your code you can check to see if there were any compilation errors. We use the return value from CompileAssemblyFromSource, which is a CompilerResults object. This object contains an errors collection, which contains any errors that occurred during the compile.
There are other options for compiling, such as compiling from a file. You can also batch compile, which means you can compile multiple files or sources at the same time. Additional information on these classes is available on MSDN Online:

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

9helpful
2answers
0helpful
1answer

How can i use the vb if the vb is install into my flashdrive?

You can use VB portable edition for flash drive.

Best of Luck
0helpful
1answer

C# code for button in vb.net

the code as itself is not compatible between languages. you need to make the button in C# then compile and use the control in vb.net

you need to give more information as to what you want exactally before you get a solution
0helpful
1answer

Developing an application with vb.net 2008 and i'm finding it

You need to set up an ODBC DSN and use this in your connection string then instantiate an ODBC connection. For example:

Dim MyConnectionString As String = "Driver={MySQLDSN};SERVER=localhost;DATABASE=MySQLDatabase;" '
Dim conn As New OdbcConnection(connectionString)
conn.Open()
Dim da As New OdbcDataAdapter("SELECT * FROM Customers", conn)
Dim ds As New DataSet()
da.Fill(ds, "Customers")
dataGrid1.DataSource = ds.DefaultViewManager
conn.Close()
1helpful
1answer

Vb interface of a matlab m-file dispalays no results

Lookup how to run in debug mode you can watch where it goes wrong.

VB 6.0 is very old. Is there are reason you are learning this language?

C# is much more popular these days and microsoft provide lots of free tools to developers these days.

0helpful
1answer

Can i get visual basic 6.0 source code of each and every controls in vb

use vb rezq here is the link VB Rezq. It decompiles the program written in VB only if the program doesnot has decompiling protection,
0helpful
1answer

Retrieving acess data which is password protected thru VB

You will need to use a connection string. But - before you can configure the string correctly, I'd need to know how the data is stored (Access, SQL, ODBC, etc). You can find examples online. Just know that you are looking for "Connection String." Here's two examples:
1. For MS Access (Jet files):
' Set up the connection string.
m_strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strDestDBPath & ";" & _
"Jet OLEDB:Engine Type=5" ' NOTE: Use Type=5 for Jet 4.x.

2. For SQL database:
g_strADOConn = "Provider=SQLOLEDB;" & _
"Data Source=SERVER_NAME;" & _
"Initial Catalog=DATABASE_NAME;" & _
"User ID=mssql_userid;" & _
"Password=mssql_password;"
1helpful
1answer

Microsoft Access query in VB

first you need to create a record set to do this, after creating a record set RS1. please follow the code below:
Update the code as per your requirement.
Rs1.Open "Select * from table_name where UserName = '" & UName & "'", Cn1, adOpenDynamic, adLockOptimistic
0helpful
1answer

Program not working

Type mismatch is caused by trying to use a variable defeined as one type to store another type of data. For example a variable that is integer but you try to set it to a letter.
In VB.net this can be caused by a line like this:
textbox="hello"
when it should be
textbox.text="hello"
see if you have that sort of mistake.
Not finding what you are looking for?

159 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...