473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compiling .dll's into a stand-alone .exe

So I have this application which uses the MSComm control to interface
with a GPS receiver. I've developed it (using Vis Studio .NET 2003) to
the point where I'm mostly happy with it and I want to transfer it to
my laptop to do some real world trials.

When I transfer the \bin (containing GPS.exe, GPS.pdb, and
Interop.MSCommLib.dll) to my lapotp and run the .exe, the program
crashes, returning the message that there is an unhandled error in the
code. I believe that it has something to do with the MSComm, since the
..exe works fine on any comuputer with Vis Studio, but returns a similar
error on all machines lacking the software.

Is there something that I need to do to direct the computer to the
..dll, or better yet, include everything in a single .exe?

Thanks in advance.

-Matt

Oct 4 '06 #1
4 2935
If it helps, the specific error is as follows:
__________________________________________________ ______
|
x |
| Application has generated an exception that could not be handled.
|
|
|
| Process id=0xe64 (3684), Thread id=0xb30 (2864).
|
|
|
| Click OK to terminate the application.
|
| Click CANCEL to debug the application.
|
|_________________________________________________ _______|

Oct 4 '06 #2
Hello fr**********@gmail.com,

The best solution would be to upgrade your dev environment to 2005 (Express
version is free) and use the 2.0 framework's SerialPort class.

-Boo
So I have this application which uses the MSComm control to interface
with a GPS receiver. I've developed it (using Vis Studio .NET 2003)
to the point where I'm mostly happy with it and I want to transfer it
to my laptop to do some real world trials.

When I transfer the \bin (containing GPS.exe, GPS.pdb, and
Interop.MSCommLib.dll) to my lapotp and run the .exe, the program
crashes, returning the message that there is an unhandled error in the
code. I believe that it has something to do with the MSComm, since
the .exe works fine on any comuputer with Vis Studio, but returns a
similar error on all machines lacking the software.

Is there something that I need to do to direct the computer to the
.dll, or better yet, include everything in a single .exe?

Thanks in advance.

-Matt

Oct 4 '06 #3
fr**********@gmail.com wrote:
code. I believe that it has something to do with the MSComm, since the
.exe works fine on any comuputer with Vis Studio, but returns a similar
error on all machines lacking the software.
Have you installed the .Net framework on the target machine? Is the
MSComm control on the target machine and registered properly?

Try adding an application exception handler so you can catch the exact
exception that is occurring.

Oct 5 '06 #4
Ghost: Thats good to know, my new copy of 2005 should arrive today and
if that fixes everything then so much the better.

Chris: I have not installed the framework yet, but I'll do that later
today and see what happens.

Thanks for the advice.

-matt

Oct 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again...
12
by: Markus Ewald | last post by:
I'm just experimenting around with the VisualC++ 2005 Express Edition Beta and found some strange behavior for which I can't seem to find a workaround. What I've done is set up two static library...
1
by: pataN | last post by:
I use csc /t:library scanControl.dll. Here I got some errors telling me that the compiler can't find the class library dll:s that I have referenced in my windows control project. I have added...
1
by: Jim Heavey | last post by:
Hello, trying to round out my knowlege here about compiling. To date I have used VS.Net to do all my compiling "majically", but I want to understand how to do it on my own, should the need ever...
10
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling?...
0
by: Michael.Suarez | last post by:
So we develop and maintain several applications used by several people in the same company, on the same intranet. There are several applications written in VB6, but going forward all of the new...
1
by: madmax1973 | last post by:
Hi to all, i'am trying to build a "dll" file (trying to move from an .exe to a .dll file to see if it works !!!) using the "MFC AppWizard(dll)" of MSVC Menu and every thing went ok while compiling...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
0
by: jostein.solstad | last post by:
Hi I have been working with Delphi to create asp.net sites so far. I am now trying my luck with Visual Studio. But there are some differences in compiling, publishing my site that i have a...
9
by: Andreas Schmitt | last post by:
I am workin on a 2 part project right now. The first part is a DLL, the second part a normal exe using that DLL. When I use the VS2005 standard setting for compiling with the Multithreaded-DLL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.