|
|
Thanks that helps. Anyone feel free to post more, if you have something earth shattering.. (which I doubt exists.)
|
|
|
|
|
Member 4641878 wrote: I've been wondering, can Delphi create, or do some unique feature, that C++ can't.
No such thing. Delphi is a layer on top of assembly, just as C++.
Member 4641878 wrote: I know Delphi compiles fast, creates fast applications with hardly any work, but I'm wondering more about the ability to create apps a C++ project would never dream of.
Go for C# - you can create WPF-applications that a low-level programmer can only dream of. I surely wouldn't be able to recreate all that functionality in Delphi.
Member 4641878 wrote: Like for example, in VB, you can't create DLLs, But in C++ you can. Or in C++ you can multi-thread...
VB is a very closed environment, but you can use the WinAPI. You can even use VB.NET to add real threading to a VB6-application. I'm using Delphi 6 only for small command-line applications for those clients who don't have/want the .NET framework.
Now, therein' lies the last advantage that Delphi has; it can create native executables that don't need a runtime. Anyway, that's something that C++ can do too
I are Troll
|
|
|
|
|
I can't help you with Delphi, but generally there's a difference between interpreters (like VB) and compiled languages (like C++), in that an interpreter can have macro's: a string that contains sourcecode that can be executed. Example (in pseudocode):
x=5
y=6
string="x+y"
z=execute(string) // z contains 11
This works in an interpreter because the 'compiler' is avalable in runtime. In a compiled language the names of x and y are lost (because the compiler changed them to pointers) so you can't make something that mimics that. Although you pay heavilly for macro's (performance) it can be handy in some specific situations. Think about a list of items where the user can input a filter expression.
All pure compiled languages have the same 'power' because they are all derived from the same model. There are a few languages that mix the interpreter and the compiler concept. You could search if Delphi is capable of handling programs like the one above.
Rozis
|
|
|
|
|
That is excellent! Thanks for the help everyone. It's great to know the differences of each language, especially their strengths and weaknesses. Post more if you like, but my problem is solved.
|
|
|
|
|
Hi,
I use Borland Delphi6 and I developed a dll. Now I want to test my dll and put some breakpoint! So I just created another project (same solution) to test and I want to know how to debug this dll.
Thank you for the answer
|
|
|
|
|
Build your test application. Then go back to your DLL project. Go to the Run menu. Select the Parameters menu item. In the Host Application area, put the path to your test application .exe.
NOTE: I'm telling you this from D5. I don't have D6 installed, but I think it was the same process.
Another issue you may run into (D5 suffers from this is), the breakpoints will disappear. This is a well known bug in D5 and debugging DLLs. Should this happen, make your test application test your DLL by using buttons. This way here, it won't automatically run through the DLL code. Before hitting a button (or some other control), go to the IDE. Go to the View->Debug Windows->Modules (or Ctrl+Alt+M). Right click your DLL in the list. Select Reload Symbol Table. This enter that path of your DLL. You should see your breakpoints re-appear.
Hope you find this information useful.
|
|
|
|
|
Hi,i have rtf formatted data stored in a file, the data is english letter and unicode character mixed format, i want to display the mixed data in a richviewEdit control. the problem is if the data is only unicode character or only the english character, it was displayed correctly,but it is not good for the mixed character, is there any way to fix it?by the way, i have to use the richview control,please help!
|
|
|
|
|
Simple Question:
How do I enable copy and paste actions for TDBEdit controls.
I hadn't noticed this didn't work until one of my customers pointed out you can't copy values from one of the edit controls and paste into another.
I tried it myself, and copy doesn't put anything to the clipboard, and if the clipboard contains appropriate data paste does nothing.
|
|
|
|
|
As there were no replies, I wrote a keyboard handler to manually perform the actions.
|
|
|
|
|
I have a question is it possible to delete the content of a textfile which items are all in a memobox
example
AssignFile(f, 'C:\windows\system32\drivers\etc\hosts'); {Assigns the Filename}
Append(f); {Opens the file for editing}
//Writeln(f, '127.0.0.1 '+ memo);
Writeln(F, Memo.text); //Could be multi-line...
//Writeln(F, 'www.'+ Memo.text); //Could be multi-line...
Closefile(f); {Closes file F}
This appends to a file text from a memo field,
I want a 2nd button that removes only the ontent that is currently in the same memobox.
Trick is there is other items in the textbox so i cant just recreate the file.
Anyone able to help ot give pointers?
|
|
|
|
|
I don't understand good enough your question.
Try yo use memo1.lines.savetofile and save content of Memo1 direct as file.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
|
http://www.delphibasics.co.uk/[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
http://www.marcocantu.com/[^]
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
|
How can I load XML file into TListBox in Delphi 2009? I want to make it possible to click a button and the channel lists will be load on ListBox and end user will click on any of the channel and it will start playing on media player.
http://s253696961.online.de/images/bxxda7q6am71jkuwtrb.jpg
modified on Tuesday, July 28, 2009 1:59 PM
|
|
|
|
|
You can load the .xml file in some of the xml components for Delphi, like TXMLDocument. But it is SLOW, takes a LOT of memory and worst of all - have some strange behavior - after accessing a node you have to manually free it. Not to mention that you have to traverse trough nodes until you reach desired branch.
If you need a simple job - like taking channels name from xml, I would suggest to open it as a txt file (you can open it trough TStringList for example, and use Text property for direct access) and manually parse it (use PosEx, to incrementally search for node names, and then Copy to extract desired names)
|
|
|
|
|
I am about to start learning a new programming language, and have recently acquired Delphi for no real reason. I was wondering, does Delphi write its code in Pascal? If so, what can I do with Pascal? Anyone have any good resources for it? Both online websites/tutorials and books (maybe even Delphi specific). If it isn't the same, which language is used in Delphi? Is it its own language? I ask because I read somewhere it uses ascal, but I didn't know if it used Pascal to physically run, or if that is what the code is. Thanks guys.
|
|
|
|
|
Check this link.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
There's no real one place to look for Delphi info, it's pretty scattered. A good site for the basics/just as a general reference, is Delphi Basics[^]
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Once upon a time, Delphi used Object Pascal. Today, Delphi is a language on its own. It is based upon Pascal, but too different to be called Pascal.
This statement is false.
|
|
|
|
|
|
Hello,
I'm trying to develop a dll for my application and what is good is that i have the code in pascal developed on Borland Delphi 6 BUT the problem is there are some objects which i can't define them in c++ .
So i need help for this migration and if there is someone can help me what is the best solution and objects in c++ relatives to this objects in Pascal :
TStringList
TMemoryStream
TStringStream
THandleStream
thank you.
|
|
|
|
|
TStringList is a linked list with string values.
TMemoryStream can be replaced by any other stream class or a byte array.
This statement is false.
|
|
|
|