Solved

Problems with .NET

Posted on 2006-06-09
5
168 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
  • 2
  • 2
5 Comments
 

Author Comment

by:liljen_80
Comment Utility
Nobody got ANY idea?!?!?!?
0
 

Author Comment

by:liljen_80
Comment Utility
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
Comment Utility
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
Comment Utility
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 50 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

9 Experts available now in Live!

Get 1:1 Help Now