After starting with the correct type project and inserting the code....SAVE IT. Now hit Build --> Rebuild. Look in the Project folder for a "...\bin\release" folder. The EXE should be in there....
Main Topics
Browse All TopicsI need to compile some Visual Studio 2008 code into a program. I have Visual Studio 2008 Express. How can I do this?
I have copied and pasted the text code into Visual Studio 2008 Express, but I am confused about how to compile this code into an actual program.
What are the steps that I need to follow to compile this code into an executable program using Visual Studio 2008 Express?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
if you would like to Deploy( make a setup.exe)::
http://www.dreamincode.net
I don't believe there is a "Visual Studio 2008 Express"; the software comes in different languages. You can have VS 2008 C# Express, or VS 2008 C++ Express, etc. What language(s) is the code in?
Also, if the person you're receiving this executable file from can send the file again, have him/her compile the EXE and remove the .EXE extension from it. Then, have him send this file to you. If you can't receive files with no extensions, have him change the extension to TXT or something acceptable by your email system. When you receive the file, just append ".exe" to the name (making sure the option in Windows Explorer "Hide File Extensions for Known File Types" is off)
Here is my code.
Can you please tell me how to use Visual Studion 2008 Express to compile this code into an application?
I need step by step instructions.
using System;
using System.Collections.Generic
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Web;
using System.Net;
using System.IO;
namespace Email_harvester
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
String myoutput = "";
myoutput = getHTML(txtURL.Text);
txtOutput.Text = getHREF(myoutput);
}
private String getHREF(String output)
{
String useOutput = output;
output = output.ToUpper();
StringBuilder sb = new StringBuilder();
int start = 0;
int end = 0;
String newHREF = "";
start = output.IndexOf(@"HREF=");
do
{
end = output.IndexOf("\"", start+6);
newHREF = useOutput.Substring(start + 6, end - (start + 6));
sb.AppendLine(newHREF);
start = end + 1;
start = output.IndexOf(@"HREF=", start);
if (start == -1)
{
break;
}
} while (true);
return sb.ToString();
}
private String getHTML(String myURL)
{
// used to build entire input
StringBuilder sb = new StringBuilder();
try
{
// used on each read operation
byte[] buf = new byte[8192];
// prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(myURL);
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
// we will read data via the response stream
Stream resStream = response.GetResponseStream
string tempString = null;
int count = 0;
do
{
// fill the buffer with data
count = resStream.Read(buf, 0, buf.Length);
// make sure we read some data
if (count != 0)
{
// translate from bytes to ASCII text
tempString = Encoding.ASCII.GetString(b
// continue building the string
sb.Append(tempString);
}
}
while (count > 0); // any more data to read?
}
catch (Exception ex)
{
return "";
}
// print out page source
return sb.ToString();
}
private String getEMAIL(String output)
{
String useOutput = output;
if (output.Trim().Length == 0)
{
return "";
}
output = output.ToUpper();
StringBuilder sb = new StringBuilder();
int start = 0;
int end = 0;
String newHREF = "";
start = output.IndexOf(@"MAILTO:")
if (start == -1)
{
return "";
}
do
{
end = output.IndexOf(@"?", start + 7);
newHREF = useOutput.Substring(start + 7, end - (start + 7));
sb.AppendLine(newHREF);
start = end + 1;
start = output.IndexOf(@"MAILTO:",
if (start == -1)
{
break;
}
} while (true);
return sb.ToString();
// print out page source
return sb.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
String newURL = "";
String baseURL = "http://indianapolis.craig
// used to build entire input
StringBuilder sb = new StringBuilder();
foreach (String myURL in txtOutput.Text.Split('\r')
{
newURL = myURL.Replace('\r',' ').Replace('\n',' ');
if (newURL.ToUpper().IndexOf(
{
if (newURL.Trim().ToUpper().I
{
sb.AppendLine(getEMAIL(get
newURL.Trim())));
}
}
}
textBox3.Text = sb.ToString();
}
}
}
Open in New WindowSelect All
You're missing quite a bit of code. On top of this, whoever programmed this seems something of an amatuer; I'd be careful with anything he/she gives you.
To make this as easy as possible for you, I need the following:
Business Accounts
Answer for Membership
by: sgomzinPosted on 2009-10-29 at 12:22:38ID: 25697257
Hi,
You need to create new project/soluton. Since there are various types pr projects that can be created in VS, you need to determine what types of code do you have , i,e, what kind of application you are going to create. Is it sinple console application, or Windows desktop, or web application? Waht kind of code do you have and what's it supposed to do?