I am currently writing a module which interfaces with a black box 3rd party DLL for a check scanner. I need to have the DLL functions loaded dynamically, and this is working for all but one function.
The SetScanParameters function has a record structure as a parameter, which I believe is somehow interfering with the methodology I am usin...
I have a Delphi 2007 app using ADO to connect to an Oracle database. I have found for the app to support Blob field types I need to use the OraOLEDB provider to connect. The connection string:
Provider=OraOLEDB.Oracle;Password=pwd;User ID=username;Data Source=127.0.0.1;Persist Security Info=False
I have found that using MSDAORA.1 as...
Hi,
I'm developing a Word addin, and somehow the shortcuts defined in TAction.ShortCut are always trigged more than one time, and this is tricky to me and hard to solve, so I resort to TForm.OnKeyDown event and cleared all TAction.ShortCut properties, this approach works well, except that the shortcuts are not shown on the correspondin...
Starting with Delphi 2009, the TListView component now offers the possibility to show items grouped using the Groups feature.
Is it possible to change the font size of just the groups header text? By default it uses the same font and size as the rest of the ListView items but I would like to increase the size of the groups header text.
...
I'd like to compare the "state" of two components, say Comp1: TSomeComponent and Comp2: TSomeComponent, i.e. I want to compare the values of all the published properties of the two components. Some of the properties are indexed, like the TListBox.Items property. Is there an easy way to do this? Do I have to invoke some iterating RTTI cod...
I am programming in a Hebrew environment and so I want the tabs on the top of a TTabControl to be displayed from right to left. The BiDiMode property doesn't affect the tabs, but rather text contained within the control.
I have tried the following code
SetWindowLong (tc.Handle, GWL_EXSTYLE,
GetWindowLong(tc.Handle, GWL_E...
when i try to compile my application in delphi prism, i got these errors
C:\Users\Burak\Documents\Visual Studio 2008\Projects\Project1\WindowsApplication1\WindowsApplication1\Main.pas(6,3) : Error : (PE17) Namespace "Windows" does not exist or has no public types
C:\Users\Burak\Documents\Visual Studio 2008\Projects\Project1\Windows...
I am working on a display/control utility to replace an ancient dedicated hardware controller for a piece of industrial machinary. The controller itself is beyond repair (someone replaced the 1 amp fuse with a 13 amp one "because it kept blowing"). The hardware interface is through a standard RS232 port. The data format is dedicated:
N...
I'm going slightly mad (singing Queen's song) about records with Generic Containers (TList). First, see this code:
TItemRec = record
private
FSender : TAction;
FOwnerPack : HModule;
FDockPanel : TdxDockPanel;
procedure SetDockPanel(const Value: TdxDockPanel);
procedure SetOwnerPack(const Value: HModule);
p...
Can someone convert this to Delphi 2010? After not being able to find delphi code to return WiFi Signal Strength I found this basic code. Can someone convert this to Delphi?
'**************************************
' Name: WiFi Signal Strength
' Description:Returns the Wifi signal st
' rength in bars (1 to 5, 5 being good)
' By: Te...
I am an individual user of Delphi, starting back in the early Turbo Pascal days. I have quite a bit of code developed over the years, but I have never sold software commercially or used it for business. Historically, Borland supported the non-professional users with lower cost versions, but Embarcadero does not. As I consider upgrading t...
When editing a type library for a COM DLL, it appears that in Delphi 2007, the type library name is always set to the name of the project. If I go and change that name, the change is ignored and eventually resets to the project name. Back in Delphi 7 I could specify the name of the type library.
What is the expected behavior? Should we...
Is there a routine available in D2007 to convert the characters in the high range of the ANSI table (>127) to their equivalent ones in pure ASCII (<=127) according to a locale (codepage)?
I know some chars cannot translate well but most can, esp. in the 192-255 range:
À -> A
à -> a
Ë -> E
ë -> e
Ç -> C
ç -> c
– -> - (that can be trickier...
hi!
I have this weird problem that a convert of a string on my machine and a production server gets different results eg:
procedure TForm1.Button1Click(Sender: TObject);
var
s1: string;
f1: double;
begin
s1 := '1.234';
f1 := StrToFloat(s1);
end;
procedure TForm1.Button2Click(Sender: TObject);
var
s2: string;
f2: dou...
I want to write some code that assigns the same event handler to several different buttons. Is there a way to implement it without referring to each button by name but by using something generic like self or sender to refer to the button?
...
Is there a recommended way / a tutorial which shows how to create and process plain SOAP request with Delphi without THTTPRio, for example, if I want to implement SOAP over JMS, SOAP over AMQP or SOAP over SMTP?
Simplified code examples:
// create a SOAP request (client side)
RequestXML := Service.Add(Arg1, Arg2);
This code would gen...
Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it easy to implement. So it would be possible to
release open source libraries precompiled for Free Pascal (or Delphi) in a public Maven repo...
Hi dudes,
I'm using dynamic link to load (BPL) modules into my app, the loading works fine with simple forms built into those moudles, but when adding more and more (third-) components and code to one form I get this error message "Invalid class typecast" for tha first time, 'cause for the second time the loading works ok, so I caught t...
Is there a macro preprocessor for Delphi 7?
There isn't one built in so maybe there's a possibilty to use a third party or some other languages preprocessor (like c preprocessor).
If there's one, how to set it up for Delphi 7?
I'm trying to do function inlining (for speed). Macro preprocessor seems to be the only easy option for delph...
I need to give users the ability to build a simple SQL query against our database. Our application is written in Delphi.
I am assuming only moderate levels of knowledge by the user, but they need the ability to build a simple select statement to be able to query against a couple of tables. If I can make this easy for them, that would ...