Following situation:
type
TRec = record
Member : Integer;
end;
TMyClass = class
private
FRec : TRec;
public
property Rec : TRec read FRec write FRec;
end;
The following doesn't work (left side cannot be assigned to), which is okay since TRec is a value type:
MyClass.Rec.Member := 0;
In D2007 though the fol...
I am using the DreamEdit (source code editing) component (of which I have a license and the source).
Sadly, the company behind it (DreamCompany) stopped supporting and upgrading the component some years ago.
Has anyone been using this component too ? And more importantly, has anyone upgraded this component to Delphi 2009 or Delphi 2010...
hi all
in my project i have two forms ,when i clicked show form 2 button in form1 ,form2 will pop up ,i want to terminate my whole application by clicking close button on form2 ,
can anyone please tell me how can i do this ?
...
Simple problem. I'm working on a Delphi 2007/WIN32 application which now uses MS Access as simple data store. I have to modify it to support SQL Server Express, which is easy. These modifications are working so the application can be deployed using either SQL Server or MS Access. (Whatever the user prefers.) I did consider deploying the ...
can anyone please help me out, to how to do remote debugging of a DLL (Just a dll) which is independent of the exe.
The dll is a service which will be running in the server machine and the DLL source code is at the client machine. Now when this service is running at the server machine i want to debug the delphi code which is at the clien...
I want to paint the full spectrum of a song from its complete FFT representation.
Using the BASS Audio Library, I create a decoder stream, get its length and then retrieve all the FFT samples. My first prototype worked perfectly:
Decoder := BASS_StreamCreateFile(FALSE, pchar(fn), 0, 0, BASS_STREAM_DECODE);
SongLen := BASS_ChannelGe...
Hi.
I have a class TChild derived from TParent. TParent has a property MyProp that is reading and setting some values in an array. Of course this property is inherited by the TChild, but I want to add few extra processing in child's property. The code below explains better what I want to do but it is not working. How can I implement it?...
Hi, I'm looking for an ANSI-SQL method to do a Select query without returning any record, but fill a TDataSet's Fields structure.
The method I found is by adding a "where 1=0" in any query, for example:
Select Id, name, province
from customers
where 1=0
This is a fairly trivial example, it turns a little more complicated when I have ...
i was reading the book Delphi Developer's Guide to OpenGL and this code should set the background color of the window, but it does not work, can anyone tell me what is wrong??
type
TForm1 = class(TForm)
procedure Form_Create(Sender: TObject);
procedure Form_Destroy(Sender: TObject);
procedure FormPaint(Sender: TObject);...
How could I protect my delphi app from being decompiled?
I know there are some software like themida that I think will do that but then the protected exe trigger the antivirus.
...
We're slowly converting a big and complicated collection of Delphi 6 projects to Delphi 2007.
In Delphi I can use compiler directives in dpr, dpk and pas files to make different code visible to different versions. For example:
requires
rtl,
vcl,
vclx,
{$IFDEF VER180} //Delphi 2007 and later
IndyCore,
IndySystem,
IndyProto...
I have some VB source code and want to convert it to Delphi:
Do While Not EOF(textfile)
Line Input #textfile, Line
Dim retstring() As String
retstring = Split(Line, Chr(32))
first = retstring(0)
second = retstring(1)
I have some text file with lines similar to these:
hello all
nice to
good day
I tried some of the sour...
Hello, I need to generate a user interface for entering a sales document (eg invoice). I'm trying to use components of "developer express" specifically the QuantumGrid component (TcxGrid). I've seen the demos of master-detail components and search in the devexpress support center, but none has helped me because all use 2 grids to handle ...
What type are parameters without type like in the class TStringStream:
function Read(var Buffer; Count: Longint): Longint; override;
What is the type of Buffer parameter (is it a type of Pointer ?).
...
hi all
In my application i want to add 2 images as resources
I want to use those images ,when i click yes button in my application first image will be set as wallpaper and when i click on No button in my application second image will be set as desktop wallpaper
thanks in advance
regards
...
I'm using embedded web browser from Bsalsa to write an email client in Delphi
I have a problem with cid embedded attachments such as:
<IMG src="cid:5D4219C71EAE43B1864AE9CB27C224A8@somehost">
I store the attachments in the database but can't figure out how to provide them to the browser. It seems custom moniker might need to be imple...
How do I change desktop wallpaper?
I tried this
procedure TForm1.Button1Click(Sender: TObject);
var
PicPath: String;
begin
PicPath := 'C:\test.bmp';
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, pChar(PicPath), SPIF_SENDCHANGE)
end;
But it didn't work.
...
Hi dudes,
I have a project using DevExpress docking components, I create forms in run-time, which are attached into dockpanels components, my problem is that OnClose event of these forms are suppressed when closing dockpanels and doesnot execute its code existing there, it is important TForm's OnClose event is executed 'cause there are ...
I've found several snippets and .pas files that can detect when USB flash drives are inserted and removed. Some give all kind of good information, however what I need is the devices' unique serial number, not the volumes' serial number.
My current .pas file (which I don't remember where I found) also seems to detect SD cards (which I li...
Hello, All
actually i was opened question previously,
but can't get answer what i exactly want, so i would like to ask again thanks All
for example, i have some text file name is 'test.txt' , and inside text contents looks like
hello all
good day
happy is
and i want to modify following source to iterate from first index of 'hello ...