 |
|
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-fou
|
| Sign In·View Thread·PermaLink | 5.00/5 (3 votes) |
|
|
|
 |
|
|
 |
|
 |
Hello, how can I use Word in Delphi?
I need to load Word document to a Delphi project. This document should be seen in my project's window. Also the document's table of contents also should be visible in a Tree component. Are there any tools to perform such task?
Thanx.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi all,
i'm having a problem with aggregate fields on a filtered dataset. before apply a filter, my aggregate fields look fine. as soon as a filter is applied to the dataset, the aggregate fields return me null.
this is an example of how i'm creating an aggregate field. fld = new TAggregateField(ClientDataSet); fld->Active = true; fld->Expression = "SUM(Amount)"; fld->ResultType = ftFloat; fld->FieldName = "TotalAmount"; fld->DisplayFormat = "0.00"; fld->Alignment = taRightJustify; fld->Index = DataSet->FieldCount; fld->DataSet = DataSet;
any ideas why this would be happening??
thanks in advance  K.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
so no one has any ideas?
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.
thanks 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
-Thanks for your time!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Thanks that helps. Anyone feel free to post more, if you have something earth shattering.. (which I doubt exists.)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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 
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
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!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |