I am using Synapse with blocking sockets and try to simply send text to the connected client. Here comes the code:
var
SServer: TTCPBlockSocket;
SClient: TTCPBlockSocket;
implementation
//Create and initialize the Sockets.
procedure TForm1.FormCreate(Sender: TObject);
begin
SClient := TTCPBlockSocket.Create;
SServer := TTCPBloc...
I have a need of implementing two apps that will exchange data with each other. Both apps will be running on separate PCs which are part of a LAN.
How we can do this in Delphi?
Is there any free component which will make it easy to exchange data between apps across PCs?
...
I have form that passes about 37 values to MS Access base with INSERT or UPDATE query. Actually it happens very fast so my wish to indicate this process on progress bar is just a fancy feature. How can I bind mysql query execution to progress bar filling? Or should I just emulate this relativity?
...
I have been working on converting a assembly of mine to be usable through Delphi. I was able to convert the assembly to a PAS file and call the method in my delphi application. But i ran into a problem where my PAS file is asking for System_Windows_Forms_TLB which i was able to find and add. But then that file uses Accessibility_TLB a...
I want a TPageControl and some TTabSheets, with 'per tabsheet' tooltip hints visible as I hover over each tab in turn.
Is there any way of getting this effect in Delphi 2009?
...
My application is currently storing settings in an INI file under the current user's profile (C:\Documents and Settings*\<CurrentUser>*\Application Data\MyApplication\MySettings.ini under WinXP). But I've realised some of these settings are unique to the machine not the user and thus want (actually need) to save them in a single locatio...
I programming with adodb/dbgo and try to use this code:
procedure TfrMain.dbeNoMejaKeyPress(Sender: TObject; var Key: Char);
begin
dmWarbam.TblTrans_temp.Filtered := False;
dmWarbam.TblTrans_temp.Filter := 'ID_ITEM = ' + QuotedStr(dbeNoMeja.Text);
dmWarbam.TblTrans_temp.Filtered := True;
end;
and
procedure TfrMain.dbeNoMejaChang...
Do you know any Open Source libraries for Delphi to serialize exceptions? I want to have a form “Exception has occurred”, so my users will be able to email error report to me. But apart from serializing exception manually, are there any open source libraries, that will serialize exception to XML or even flat file?
The absolute must-be: ...
In my Delphi form's OnShow method, I determine that a dialog must be opened automatically once the form is opened - and I should be able to do this by simulating a click on a menuitem.
However, calling menuitem.Click brings up the dialog before the main form has opened - which is not what I want.
I expect that should do what I want, bu...
Certain features for data-bound grid controls are a given and should be available in any grid. Like rows and columns (other layouts are possible in many) and checkboxes for boolean values with text representation for other values. But many grid controls offer a cacophony of features that may not be applicable to all of the use cases. Som...
I've got a form with a number of panels, each of which has Align=alTop, so they stack down nicely from the top of the form.
However, I want to dynamically change the appearance order of these panels - i.e, move them up and down. What's the best way of doing this?
...
Hello,
I worked in Delphi 6 a few years.
Now I was beginning in Delphi network and I need some source code
For following things:
I want make chat application which to have two peer to peer clients
But I don’t know how I to measure time for two clients and show it on both
Screens.
I also want to mark first client with 1,second with 2 ,...
How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application needs to send small strings to the service and receive string responses back. Both are written in Delphi 2009. (Please provide sample code also)
...
Is it possible to declare a property in an interface without declaring the get- and set-methods for it? Something like:
IValue = interface
property value: double;
end;
I want to state that the implementor should have a property called value, returning a double, but I really don't care if it returns a private field or the result from...
Hi !
I would like to create an application with rich UI elements and no VCL in Delphi (except a TForm). Each components (buttons, list, etc...) needs to support full per pixel alpha and be easily created without any codes. It should be skinnable and able to give result similar to adobe air application.
I've tried with GR32 (Graphics32...
Hi,
I am developing a timer in Delphi 2009. I am currently using the following to format my timer display:
Caption := Format('%.2d', [Hours]) + ':' +
Format('%.2d', [Minutes]) + ':' +
Format('%.2d', [Seconds]);
and this as expected displays the time as:
00:04:35
However, when I go into negative time it is u...
I have a form in a Delphi project. There is a button on the form. When the user clicks the button, I want it to open Windows Explorer.
What code will I need to achieve this?
...
I wish to get the current size for an image being displayed with TImage, this object has the Proportional property set to True and is aligned to Client with main form. So, when resizing the form I wanna get the current size for that image, not canvas size neither real size for that image. Getting the current size I can show what's the pe...
is there an easy way to convert my single instance app's notification(Systray) icon to a new Program icon (taskbar button) for Win7 with Delphi. (Source please)
Is it reasonable to keep the existing systray behaviour for old XP/Vista or should these also start using new model somehow?
Its recommended by MS:
http://msdn.microsoft.com/en-...
How do I create a second form with a close button,but without an icon.
...