My team is currently thinking of moving our existing MDI-based application to a more modern, docking-based approach. We're still thinking, but we'd like to move it to something like VS2010's docking and visual look:
This has the following features:
Shows a blended outline where the window will dock
Docks into tabs, as well as side-...
Hi!
I created an application uses
CreateOLEObject("CDO.Message")
Everything is working fine in my machine, but in another I got
Érvénytelen osztályú karakterlánc.
errormessage (hungarian).
This is meaning these error codes by ms support (http://support.microsoft.com/kb/186063/hu):
-2147221005 (800401F3)
The destination machi...
I am learning a component from TMS. I got "...rtl100.bpl was not found...". probably this error was happened if I use "Build with runtime packages" that contains "rtl".
Where is rtl100.bpl (I am using D2007)? What should I do to fix this error?
...
Hi there
I want to do this and I don't want to have an external DLL file used.
Album Art is a picture which is stored in a for example MP3 file. I want to get it out and display it. I searched the net but I couldn't find a source file.
Thanks in advance
...
I have one record type. I want to add the variable of that record type in TListbox and retrieve it on click event of TListbox. Is it possible? If yes then how?
I added it using
lstbox.AddItem(data,myrec);
It shows error of incompatible types. data is string and myrec is variable of MyRecord which I have created.
For adding:
N...
I am converting a low level C library to Delphi.
I find a lot of casts. I think it is normal in C World. I think I am safe in throwing them out. Integer is 32 bit only here. What do you think?
What could be the overhead of OOP if I convert it to objects etc?
Similarly I want to know the cost of try .. finally and exceptions.
Give me ...
This is a spin off from my last question
How does delphi convert ModalResult properties?
Since Delphi doesn't convert ModalResult properties, what's the best way for me to convert ModalResult properties to integers?
I don't really want:
If SpecialCase then
else if AnotherSpecialCase then
else BehaveNormally
So how do I convert value...
I wanna insert a region in an edit view and then fold this region.
// fEditView: IOTAEditView;
var
writer: IOTAEditWriter;
begin
writer := fEditView.Buffer.CreateUndoableWriter;
//...
writer.Insert('{$REGION ''Documentation''}'#13#10'{$ENDREGION}');
writer := nil; // Flush the buffer
fEditView.Position.GotoLine(lineNo); //...
I use a TcxExtLookupComboBox from Devexpress and try to implement a custom datasource. I have set the customdatasource like this:
procedure TMainForm.FormCreate(Sender: TObject);
begin
fDataSource := TMyDataSource.Create;
cbotestSearch.Properties.View.DataController.CustomDataSource := fDataSource;
end;
TMyDataSource is defined h...
I have noticed quite a few times that syntax errors like
Exit(push(ASBDD(asPixmap, _ScriptSavePixmap(Script, PMRGBAdjust(_ScriptGetPixmap(Script, Args[0].Index), adjparams))));
actually compiles. Notice that one closing bracket ) is missing. (Of course it also compiles if I add this missing bracket!)
Is this a documented feature?
...
Not sure what happened to Bold/Eco during the Borland/Codegear/Embarcadero transition but I sure miss it in the newer versions of Delphi. Anyone know of a framework that comes close?
If not, maybe you could suggest a combination of libraries and components that comes close.
...
I've been reading about CrossKylix recently, but for most uses one has to consider 3rd party components.
So I would like to know which of the actively developed components still support Kylix.
Many added partial or complete Kylix support back in the day, but I'm affraid some never kept updating, and the IFDEF-ed parts that compile with ...
I've got some code that worked fine under Delphi 2007 but breaks under D2010. It involves passing in a string, converting it to a PWideChar (specifically, a WideString pointer, not a UnicodeString pointer), doing some processing, and then calling SysFreeString on it. It works fine until a blank string is passed in, then SysFreeString b...
Is it possible for a virtual string tree to look like this?
i really need help on this since i'm new in delphi..
...
This error showed when I tried to select on an empty table in MS SQL Server 2005: "either BOF or EOF is True, or the current record has been deleted". I have used TADOConnection and TADODataSet in Delphi 5 to connect and retrieve data from the database.
Conn := TADOConnection.Create(nil);
DataSet := TADODataSet.Create(nil);
Conn....
I've got some long but simple loops in my Delphi program that may loop millions of times and take some seconds to execute. The code inside of the loop is very fast and has been optimized. It just takes long because it is done so many times.
e.g.:
Screen.Cursor = crHourGlass;
R := FirstRecord;
while R <> nil do begin
{ do something si...
I want to change our search as it is a bit hacky now.
Currently it works like this:
User enter a text in a textbox, for example Volvo and start searching.
This search with SQL all posts containing Volvo.
The result is a list with 2 columns, BoldID and DisplayValue.
BoldID is just an unique number to identify the object in datab...
I have two classes, a base class and a derived class. My base class has a constructor of this form:
constructor TBaseClass.CreateFromXML(ANode: IXMLNode);
begin
Create;
//Set members from XML
end;
My derived class has a constructor of this form:
constructor TDerivedClass.Create;
begin
FDatabaseID = -1;
end;
My problem ...
Hi
I have list of country names or other strings in a text blob field. When I read the field, I get a string back with LfCr between the words or phrases. Is there an easy way to assign this string to the Items property of a TComboBox? I'm using TADOQuery on a FireBird 2.1 Database.
Regards, Pieter
...
my forms look dull and windows 95 like in a large project that i have been programming(cant program all over again) i accidently modified 'comiled resource script ' for that project using a text editor,when i reopened my project it asked if i want to recreate some file to which i clicked yes. now my form look dull and windows 95 style, a...