I have a service monitor app that monitors the status of three other servers app - you know those kind of green, red status stuff, start, stop, etc.
The problem is that it shows the wrong state in Windows 7 even if the user is the administrator.
The start, stop buttons are disabled and the install button enabled, the status color is gr...
I have a lot of embedded C/C++/Ada experience and an outdated smattering of Delphi plus some database stuff.
Now I have to implement an app in Delphi which can manipulate MySql, Oracle, maybe MS Access. In short, I need ODBC.
I need to programmatically created a database, define its structure and populate its contents, then later query...
Hi All,
I want to implement a RPC module. Different requests are encoded as JSON objects. They will be decoded and then be handled by a request handler. At last a corresponding response will be returned. The demo code looks as follows:
type
IRequestHandler = interface
function Handle(const Request: TAaaRequest): TResponse;
f...
hi friends.
i want to create a color progress bar in delphi language within use by XPMan component (it is : with win xp style).
what do i do?
what code using?
...
I have strange a memory corruption problem. After many hours debugging and trying I think I found something.
For example: I do a simple string assignment:
sTest := 'SET LOCK_TIMEOUT ';
However, the result sometimes becomes:
sTest = 'SET LOCK'#0'TIMEOUT '
So, the _ gets replaced by an 0 byte.
I have seen this happening once (repr...
My application makes heavy use of TList, so I was wondering if there are any alternative implementations that are faster or optimized for particular use case.
I know of RtlVCLOptimize.pas 2.77, which has optimized implementations of several TList methods.
But I'd like to know if there is anything else out there. I also don't require it...
Hi,
Found a piece of code today, that I find a little smelly...
TMyObject.LoadFromFile(const filename: String);
begin
if fileExists(filename) then
self := TSomeObjectStreamer.ReadObjectFromFile(filename);
end;
If this code works, it will at least leak some memory, but does it work?
Is OK to assign to self in this manner?
Wha...
Hi!
In AQTime for Delphi, it boasts to be very fast to get to the trouble spots by using areas and triggers etc. But it seems to me, that especially if you have very much code in the areas to profile, then the execution slows down dramatically even when the profiling is NOT on.
For example, if I want to profile a specific routine late ...
My last question "List service and services status under Win-7" made me start working on a solution that gives my app the admin privileges under Windows Vista onward based on a .manifest file.
I was not sure about continue the previous question with this matter since they are not the same so here is another question:
My app now works f...
I'm looking for an algorithm that will help calculate a workday working time length. It would have an input date range and then allow subtracting partially or completely intersecting time range slices from that date range and the result would be the number of minutes (or the fraction/multiple of a day) left in the original date range, a...
Coding in Delphi, attaching an OnKeyPress event handler to a TStringGrid:
The OnKeyPress event fires before the grid cell that the user is typing into has actually updated its value with the key that has been pressed. This is obviously a problem, when I want to know what the contents of that cell are at this moment, as in, as the user ...
I have to resurrect an ancient Delphi 7 application, which means I have to use the D7 IDE. Upgrading the project to a more recent version of Delphi unfortunately isn't an option.
My new D7 installation's Run menu is missing Attach to Process. Aside from the missing menu item, the debugger works fine (I can debug normal Delphi executab...
Are there any CI-Systems for Delphi like Hudson for Java?
Does Hudson has any Delphi integrations?
...
I have a Delphi application skinned by devexpress skins and i want to add a background image on mdi form only without applying it also to childforms. I don't want to use multiple skin controllers.
...
Hello,
In C++,a console application can have a message handler in its Winmain procedure.Like this:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
HWND hwnd;
MSG msg;
#ifdef _DEBUG
CreateConsole("Title");
#endif
hwnd = CreateDialog(hInstance, MAKEINTRESOURCE(ID...
i need to use WSASocket function etc ...
...
Hi All,
I am really confused about this one. I have some code that runs fine on my development server but I am now trying to get the site working on the sales guys new laptop. None of the image buttons on the website seem to be working for him (they just redirect me back to the websites homepage) whereas they used to on his previous mac...
I am coding an application for my company wherein i want to parse the results of a mysql query and display them in my application but i am facing a problem conecting to the database.
the ip address of the server is : 172.30.192.20
and before i can ping it i have to add route on my pc something like this
route add 172.30.192.0 mask 2...
In C I've used the system() function before in a console application and if I start another process using system() it inherits the console window of the process that called it.
In Delphi system() doesn't exist so I'm using ShellExecute() to create a new process, but the new process comes up in a new console window. Is there some way th...
Working on a service application in Delphi 5 that is intended to run on Windows XP - 7. Most of the application is coming together nicely, but I'm running into one issue. Part of this service application is a form that displays data occasionally (similar to the slider box Avast uses to let you know its updated). When the service shows...