As perhaps you know already, most probably the next version of Delphi will be cross-platform. Also, here are some polls on the matter.
While writing a cross-compiler isn't a thing which interests us very much now, porting a library which was/is Windows-tied to multiple platforms, certainly does.
You can think, for example at VCL (Delp...
I'm writing a DLL in Delphi using the below C++ example:
USERDLL_API double process_message (const char* pmessage, const void* param)
{
if (pmessage==NULL) { return 0; }
if (param==NULL) { return 0; }
if (strcmp(pmessage,"state")==0)
{
current_state *state = (current_state*) param;
return process_state( (cu...
I have declared the following enum type in which I want the first member to have the ordinal value of 1 (one) rather than the usual 0 (zero):
type
TMyEnum = (
meFirstValue = 1,
meSecondValue,
meThirdValue
);
If I call TypeInfo(), e.g. as part of a call to GetEnumName(), ...
First off, forgive me if this is a schoolboy question :)
We have a number of applications that user Delphi dbxpress to access a MySQL 5 server. These applications were all written on Delphi 2007 against a libmysql.dll version 5.0.xx (actual version forgotten)
This dll has been distributed to all users and is working fine.
I have just...
Hi I have been using this function in Delphi 2006, but now with D2010 it throws an error.
I think it is related to the switch to Unicode.
Function TWinUtils.GetTempFile(Const Extension: STRING): STRING;
Var
Buffer: ARRAY [0 .. MAX_PATH] OF char;
Begin
Repeat
GetTempPath(SizeOf(Buffer) - 1, Buffer);
GetTempF...
What do you use to measure LoC metrics of your projects?
...
Hello Folks,
Which additional files are needed to deploy a delphi dbexpress based application to get access to mysql databases.
I can't find any information about it.
Thanks in advance.
...
Does anyone have any suggestions (product, toolsets, methods or other) for the storage and processing of custom data (delphi collections, binary trees, DIContainers etc) that DOES NOT restrict itself to a standard win32 memory address space? To put that in the extreme, is there anything off the shelf that can do the equivalent of holdin...
I have a Firebird database (running on server version 2.1.3) and am connecting to it with Delphi 2007 using the DBExpress objects (using the Interbase driver)
One of my tables in the database looks something like this
CREATE TABLE MYTABLE
(
MYDATE Timestamp NOT NULL,
MYINDEX Integer NOT NULL,
...
Snip
...
PRIMARY KEY (MYDAT...
I'm looking for the best option to store my application settings. I decided to write own class that inherits from TPersistent which would store all the config options available. Currently I'm looking for the best way to save it - and I found JvAppStorage which looked very promising (as I'm using JVCL in my project anyway...) but it doesn...
Hi,
I need to consume a Web Service via SSL. In order to accomplish that I have built a web client in Delphi 6 that uses Indy to read the client certificates and write the soap request via https. The compilated version of the code is a DLL that runs in IIS 5.0. After tested the code in my local machine it works fine (I'm behind a proxy)...
i need to update items around an edit box when it changes size.
TEdit has no OnResize event.
An edit box can resize at various times, e.g.:
changing width/height in code
form scaled for DPI scaling
font changed
And i'm sure others i don't know about.
i need a single event to know when an edit box has changed its size. Is there a W...
In the form designer, I sometimes need to see the type of a property, so I know what kind of input it expects. Unfortunately the Object Inspector doesn't seem to show it.
Example:
This component clearly wants me to link a "Grid", but I have no idea what type of grid I need. TDbGrid? TDrawGrid? TColorGrid? TGridPanel?
Of course I ...
I have to read some data stored by a third party application in an Acess 2000 database. The vendor is no longer around to ask questions.
One table contains image data that appears to be compressed - because the original application can export the contents of the blob field to an embedded png image in a xls export file.
I have extracte...
With Screen.DesktopHeight and Screen.DesktopWidth, I can get the size of the "virtual" desktop and I believe that works for one or multiple monitors.
I save the position (top and left) and size (height and width) of my application into the registry when it closes. When it opens, I want to ensure it is entirely visible, since it may have...
I have a persistence framework, and I am trying to use generics so I don't have to keep creating new list classes for each type of object I want to store in a type safe way.
I have a method that returns the class of the contained object in the list class (so I know which queries to run and which object to create.
As an example, it look...
Hello,
I gather some experience with the trial version of delphi 2010.
I am looking for a simple debug visualizer, because the sample
debug visualizers are not part of the trail. I do a lot with the
new rtti type TValue and TValue.ToString can't be call from the
debugger (results in an exception), so my idea is to write a
debug vis...
Hi,
I'm developing MDI application which assigns a tab for each created MDI child. I need to "catch" OnActivate, OnCreate and OnDestroy events of child form in the main (parent) form code. Simply calling the code in children form is impossible for me, as there are many form's classes that are used as MDI children, also the plugin can loa...
I have a very simple problem. I have an application which is written in Delphi 2007 for WIN32. It uses a C# DLL which is imported into the project through it's COM interface and a simple trick to avoid registering the COM object. But now I have a Java-generated .JAR file that I want to call from my application. And while I have access to...
Context:
I have been working on and off on an application which uses a number of custom frames-based components (which folks around here have been super helpful with as I've been learning!).
Since I am modifying the visual component that the app uses very often, and those components are fairly numerous and interrelated (quite a bit o...