?
Solved

Problems with .NET

Posted on 2006-06-09
5
Medium Priority
?
176 Views
Last Modified: 2010-04-05
I'm a novise in .net delphi. I have made an .exe prog that contains a buttun1, edit1, edit2 and listbox1. And NOTHING more!
When I start it on the computer I have made the .exe file it is no problem. BUT when i start it on other computers i get an error message, see link: http://www.mediahump.com/?h=6729 

I have started the .exe file from the same location in the network, local on several computers, and the same problem everywere.

How too solve this?

And what is the diffrense with .Net VCL Forms Application and .Net Windows Forms Application? When too use witch?

All the computers is running on Windows XP.
0
Comment
Question by:liljen_80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:liljen_80
ID: 16883587
Nobody got ANY idea?!?!?!?
0
 

Author Comment

by:liljen_80
ID: 16883622
I have also gotten this error messagne: http://img120.imageshack.us/my.php?image=delphierror0js.png 

Please help!
0
 
LVL 3

Expert Comment

by:dygj
ID: 16883815
You cannot just copy your exe file around in .net or start it as a different user.
.net must be installed and exe file must be depoyed with the right permissions

There is a depoyment tutorials in delphi help.


0
 
LVL 1

Expert Comment

by:Graham9295
ID: 16927891
Depending on what you are doing and what type of machine you are running you program you may need to "build" some of the Delphi .NET code into your program at compile time. I can not remember right now exactly what needs to be done (I still mainly work in 32bit Delphi) but I have had this problem myself so I will duplicate what you have done tomorrow and try to give you more of an idea of what you need to do.
0
 
LVL 1

Accepted Solution

by:
Graham9295 earned 150 total points
ID: 16929441
As promised I had a look and I might have the answer. If you are creating a VCL forms application then you may need to "link in" some of the Delphi resources in order to make you application work on different machines or you would also have to make sure that the "extra" files are installed when you install your application. For example, using the same set of components as you mentioned about in a VCL forms application in the "Project" window you should see a heading marked "References" and if you expand that you will see a number of different DLLs listed. If the name begins with the word "System" then you should be ok and not have to worry about those (assuming .NET is installed on the target machine) but for anything else you may need to link these into your application (or as I said make sure they are installed on the target machine). Using the above example I saw that there are a number of Borland DLLs listed e.g. Borland.Delphi.dll, Borland.Vlc.dll and if you right click on each of these at the bottom of the pop-up menu you will see an option titled "Link in Delphi units" which will link these into your application when it is complied. You should then be able to copy you application onto another machine and (fingers crossed) it will run as you expect although the downside of having these DLLs linked in is that your application will be bigger in size.

Having said all that I can not say that I am 100% right about this because I've only "played" with the .NET stuff a bit, I still most work with the Win32 parts of Delphi so whilst I have got the couple of things I have done in .NET working it might be that I have just been lucky and "linking in" may not be the best way to do this but it worked for me.

Graham
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

743 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