delphi

Delphi support for Aero Glass and the DoubleBuffered property - what is going on and how do we use them?

I am confused by Delphi 2009/2010 support for the Aero Theme Glass features in Windows, and by what, exactly DoubleBuffered means, and what it has to do with Aero glass. I have found that DoubleBuffered is not only a property in the VCL, it also is found in .net WinForms. Initially I wondered if it set some kind of window style bit use...

Delphi signature in exe

Hello. I currently use Type TDelphiSignature=record Signature:array [0..3] of LongWord; Version:string; end; const DelphiSignature:array [0..2] of TDelphiSignature=( (Signature:($384F3D26,$B83782C2,$034224F3,$833A9B17);Version:'Delphi Entreprise'), (Signature:($235D7823,$19F3A5B6,$0240F343,$C711D126);Version:'Delp...

Delphi TChart using AddNullXY and trend function

I have TeeChart version 7.07. I have a chart with a FastLineSeries with 400 datapoints (x is date and y is used%). the first 200 are valid dates with actual measured % values. the next 200 are valid dates in the future with 0 as the YValue that were added using AddNullXY (date,0,datelabel). I also have a FastLineSeries as a trend funct...

Delphi & ADO: datetime to string conversion

Hi, I use Delphi 2006 and ADO to connect to a MS Access database. Some of the fields I retrieve are Date fields (in Access formatted as "Medium Date" i.e. 20-Apr-2010) however I have to retrieve them as Strings: FValue:=FAccessADOQuery.Fields.FieldByName(FIELD_NAME).AsString; and then the fields are formatted as follows: 4/20/2010. ...

Delphi 2010 - IBX - UTF8 - dbmemo problem

I am migrating an application from Delphi 6 - IBX - Firebird 1.5 that works great to Delphi 2010 - Firebird 2.1 - UTF8 database. The problem is that if I use a TDBMemo to display data from a BLOB I get the following error: Debugger Exception Notification Project accedo.exe raised exception class EAccessViolation with message 'Ac...

how to communicate with tor network

hi all how can i commpunicate with tor network in delphi i want to use tor network for my IDHTTP1 operations is it possible ? if yes can any one help me regards :) ...

detect if the scrollbars of a form are visible in an mdi child

I cannot detect if the scrollbars of a form are visible. Googleing the Internet shows that the code below should work. Everybody uses it: function VertScrollBarVisible(WindowHandle: THandle): Boolean; begin Result:= (GetWindowlong(WindowHandle, GWL_STYLE) AND WS_VSCROLL) <> 0 end; I call it like this: procedure TFrmBaser.Button1Cl...

OLE DB Driver Help

I'm using Delphi 2006 and would like some help with fixing a bug in an OLE DB driver implementation. The implementation is built on top of the OLEDB Toolkit from Binh Ly. The problem I'm having is that after executing an Insert command inside the TOleDbCommand.ExecuteCommand method I need to update the row data with a record Id (this i...

Embed Image to Outlook using extended mapi functions

I need to embed images in an email and preview the email before it is sent in outlook. CDO and Redemption is not an option. I have tried the following code, but the images just appears as a little block. procedure AddAttachment(FullFileName: String; Attachments: Outlook2000.Attachments; CID: String); const PR_ATTACH_CONTENT_...

Why does my program crash when I destroy a button in its own OnClick handler?

I tried a script from a web site I run http://www.delphi-central.com/runtime.aspx and succeed. private { Private declarations } procedure CustomButtonClick(Sender: TObject); procedure TForm1.AddNewButtonClick(Sender: TObject); var NewButton : TButton; begin NewButton := TButton.create(self); with NewButton do begin...

Splash Screen Programatically

What is the best way to implement splash screen in Delphi? ...

Delphi Online reports from firebird database

In a Firebird database driven Delphi application we need to bring some data online, so we can add to our application online-reporting capabilities. Current approach is: whenever data is changed or added send them to the online server(php + mysql), if it fails, add it to the queue and try again. Then the server having the data is able to...

i want to send e-mails using smtp through proxy with delphi

Is it possible to send e-mails using smtp through proxy with delphi. I have build some e-mail sending applications before, using SSL etc. but i didn't use proxy before, has anyone idea how i can do that with delphi. Thanks. ...

Forms are minimized on FormShow: random behaviour in Delphi application. Any idea?

I am experiencing an hard-to-track problem: when showing new forms (I create and show them at runtime) sometimes the form is minimized. I don't understand why, I say this problem in xp, Vista and 7. I tried to create samples to isolate the problem but on the samples I cannot reproduce it (=the forms always show not minimized). What ha...

Incorrect syntax near the keyword 'with' (SQL)

Hi Guys, I have a little bit of an odd issue. When I run this SQL: with ID_Table as ( select row_number() over (order By SS_ID) As row_id, ss_id from slide_show ) select t0.* from ID_Table as t1 inner Join slide_show as t0 on t1.ss_id = t0.ss_id where t1.row_id between 0 and 1 order by t...

Delphi chars are now stored with 2 bytes rather than 1 in typed binary files. How can I still read my old files?

I maintain a Delphi program which uses typed binary files as its native file format. After upgrading from Turbo Delphi to Delphi 2010, all chars in the record type being stored started being stored with 2 bytes rather than one. The data types being stored are char and array[1..5] of char. So before, part of the file looked like: 4C 20...

Delphi button on Glass - Best Looking Third Party Button Component

I am looking for a Delphi button designed to use with Aero Glass running Vista and Windows 7, with the following properties: completely self-drawn TCustomControl descendant. looks good [ renders in a way that looks to the user like a normal button, with no glitches ] over a Glass pane with Aero composition (DWM), no white or black ring...

How can I query remembered UNC connections similar to "net use"?

I understand how to retrieve the UNC path for a mapped drive from the registry (HKEY_CURRENT_USER\Network), but I also have a need to retrieve remote connections to network resources that were not mapped. For example, opening the 'Run' dialog and typing <\server0123\share$>. If I type "net use", I would see this mapping, but I have bee...

Problem sending HTML Mails using MAPI and Outlook

I am trying sending HTML e-mails using MAPI calls in my Delphi Application. When the client is Thunderbird if works fine. But when the client is Microsoft Outlook or Outlook Express I need to save the HTML code in a file and send it as the first attachment of my message, elsewhere the mail client interpret the HTML as text, showing the t...

best way to have a central database and remote can be portable

Hi I´m trying to do a system that has a central database in the office and if necessary I work in a copy of the database out of the office and when i return i update the client(s) record. I have for each client a master table dataset client========>Local places of this client===> Equipment====>Report(variables). so when I return I have...