We are using a class called ODNCServer here - at initialization, an TAutoObjectFactory object is created:
initialization
pAutoObjectFactory := TAutoObjectFactory.Create(ComServer, TODNCServer, Class_ODNCServer, ciSingleInstance, tmApartment);
Now FastMM is complaining about a memory leak because this object isn't freed anywhere. If ...
I'm working on a number of Delphi applications that will need to upgrade their own database structures in the field when new versions are released and when users choose to install additional modules. The applications are using a variety of embedded databases (DBISAM and Jet currently, but this may change).
In the past I've done this wi...
I am attempting to automate some legacy Delphi 5 builds with an MSBuild script, and am having trouble capturing errors. Thinking there was some issue with the MSBuild passing, I also tried a batch file and am still receiving back passes (0) when the build should fail (1). %2 is the path to delphi and %3 is the project name.
REM delphi...
Hi,
I have some operations which are based on TThreads. Now I need to create the thread containing the list of jobs to be done, then firing each one as soon as the previous finishes... How should I write it? I can't allow the threads to be ran simultaneously as there might be over 10 000 operations to be done.
It is quite hard to find ...
I have a rather simple multi-threaded VCL gui application written with Delphi 2007. I do some processing in multiple child threads (up to 16 concurrent) that need to update a grid control on my main form (simply posting strings to a grid). None of the child threads ever talk to each-other.
My initial design involved calling TThread's "S...
hello all
I am making login system ,
I successed all the way but ,i want abit more professional ,in my login system ,when user enters password in his password edit box ,i want to convert them as * but i want real data what they types to test their authentication and i want to make save this account ,how can i do that
example
than...
Hi.
I hope someone can assist me with the problem I'm currently experiencing. We have a lot of Delphi legacy code, and need to convert some of our Delphi applications to C#.
The legacy code I'm currently struggling with is that of calling a function from a 3rd party application's non-COM DLL.
Here is the C-style header and struct use...
I want to send email to Yahoo mail using Indy. But Yahoo uses 465 port with SSL connection. I don't know how to implement that in my program. I have read about TIdSSLIOHandlerSocketOpenSSL component on internet, but couldn't find such component in Delphi 7. Can anyone help?
...
When I minimize and restore my Delphi application, the window contents flash a horrible black before (re)painting on Vista/Win7. This can also be seen with the Delphi 2007 IDE - the Object Inspector, Project Manager, Messages window (but not the editor contents) also flash black when restoring.
None of the ususal flicker-free painting t...
Simple question. I have a panel with 3 components. All of them are have Align := alRight.
But the problem is that during runtime the order of them is not the same as designtime.
Can I instead use alCustom to force the order at the right border ?
I use D2007.
...
If you are sticking with Delphi for Win32, what do you use as GUI framework, in order to approach the versatility and performance of the WPF framework on .NET?
There are some alternatives out there, such as DXScene, but it appears to have a problem with font clarity. Graphics32 and AGG are excellent low-level libraries, but lack a high-...
I am refactoring some existing Delphi code into a class.
The current code uses a global variable defined as a dynamic array array of byte. At initialization time the code figures out the size of the array and uses SetLength to allocate it. It is convenient both as the buffer to obtain the data and as the runtime container for a later p...
I'm using Digital Metaphors ReportBuilder in Delphi 2007. I'd like to access the system date (the value of the now function in Delphi) using RAP, but get an undeclared identifier error when attempting to compile in the Report Builder designer. What is the best way to get the system date inside of RAP?
...
i'm using delphi 2009 to write an app that uses an Access database.
i noticed that MS Access' ORDER BY seems to be sorting international character sets like AnsiCompareText whereas throughout my app, i'm using SysUtils.CompareText( ).
Access' (Jet's) ORDER BY results (delphi AnsiCompareText( ) is the same)
Nørmork
Öster
RAM
delp...
I'm making user definable key macros to a program. (Those macros are limited to that program.)
I'm using TApplicationEvents to record key messages. And then use SendInput to play them back. But I need to disable mouse and keyboard so it wouldn't interrupt playback.
I can't use JournalPlaybackProc and JournalRecordProc because they are ...
Hi dudes, I'm trying to divide my monolithic, Delphi-Win32 app in libraries, so I get some questions around how to share global variables and object among my libraries using Delphi 2009. For example, I have 3 global objects (derived from TObject): for user info, for current session info, and for storing the active database connection and...
What is the go with inlining functions or procedures in Delphi (specifically v2010 here, but I had the same issue with Turbo Delphi)?
There is some discalimer in the help about it may not always inline a function because of "certain criteria" whatever that means.
But I have found that generally inlining functions (even very simple ones...
I wrote a simple method to sort column in TDBGrid.
If Option.RowSelect set to False everything works fine, but if RowSelect gets True the horizontal position scroll doesn't restore after sort column.
So I try GetScrollPos and SetScrollPos to restore horizontal Scroll position, the ScrollBar goes to the right position but TDBGrid didn't s...
How do I handle a proxy PAC script file used by IE with Indy in Delphi 2010.
Earlier we used a 3:d party component to get the pac-script from IE, but the component is obsolete. I'm a newbie to the problem so every tip is appreciated.
Thanks
TL
...
I have tabcontrol component on my form. After I put XPManifest, its color became white, I want to change it, but couldn't find color property. And I don't want to remove XPManifest as well. Is there any way to solve this issue?
...