fyi - yes I have set the filtered property, the filter works fine on the dataset. only the aggregate field does not get updated. and i dont want to re-open the dataset, i've already got the set of records i want to work with, i just need the aggregate field to re-calculate.
Hi, I'm a C++ programmer that is looking into learning Delphi. I've been googling around trying to find the differences. More specifically, I've been wondering, can Delphi create, or do some unique feature, that C++ can't. So far all the sights I've been to, have not boasted such a claim, or I'm just going to all the wrong sights. 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. Like for example, in VB, you can't create DLLs, But in C++ you can. Or in C++ you can multi-thread...
A link to a site would be just fine.
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 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):
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.
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.
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!
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.
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.