Hi,
I got below mentioned code for adding my application to Windows Firewall Exception list.
I wanted to know if this will also work for other firewalls eg: Antivirus firewalls etc.
If not then please suggest a solution.
Note: My application is running with Admin rights but my users are not able to understand firewall settings of quick...
I see that WMI is very powerful and seems to be able to return most properties of a PC hardware. I'd like to display the available parallel ports on any PC and find their I/O addresses - I know that normally this is done using a Kernel driver but this is a legacy need - dont ask! Presently we look in Device Manager and then have to type ...
In a Delphi app intended to build an internet software update service for my software, the Windows 7 UAC system requests authorization from the user to run the exe.The following possible contentious/risk areas exist in the code:
A named pipe server is created for communications
TCP is used for FTP and HTTP
SHGetSpecialFolderPath api ca...
In Delphi you can create a standalone Windows VCL Forms application. You can also create a Windows service application.
Is it possible to combine the two in a single application that can run as a standalone application and can also be installed as a Windows service?
...
Hi
We have a suite of programs that check for new versions at startup, and then download new versions to run if required. This is obviously a problem in Windows 7, when it is locked down as a 'standard user', as they can't write to the c:\program files directory and below. Anyone seen a example of an application that gets around with is...
Is there a way to group a bunch of DLL's and still use them at run time (not zipped up). Sorry this question sounds terse and stupid, but I'm not sure what more to ask.
I'll explain the situation though:
We've had two standalone Windows Applications and now one of our Applications has swelled to such ungainly proportions that the othe...
I want to detect when a file date changes and update a DevX TdxMemData which is used as a Tdatasource which then would be seen in a TDBGrid that uses it.
I've found some code that uses ReadDirectoryChangesW, but seems rather complex for my simple needs.
I'm considering using a TTimer and firing it off every five seconds. (That's fine ...
We are in the process of creating active-x controls used within our application.
Since Microsoft stopped supporting classic Visual Basic, is it wise to use Visual Basic to develop the Active X control or the latest VC++/ATL/MFC libraries provide more feature where we can create controls faster by leaving Visual Basic flexibility?
We w...
Hello,
I can't figure out how to capture the delete key press.
I found out that in ASCII code table, it is at 127 place, but if (Key = #127) then got me nowhere.
Then i checked the value of VK_DELETE which was 47. Tried to use that, but it didn't work.
The KeyPreview := true is set in my form.
I tried to add the ShowMessage(IntToSt...
In Delphi 2009 using win32, how would I obtain a list of GDI+ fonts available on the system?
Supplementary question: is there a font dialog available that can show just this this of fonts to the user? Bonus points if the same method can be used in Lazerous.
...
We register the capabilities of Delphi applications using TLB files. However, from reading MSDN documentation, "Installation package authors are strongly advised against using the TypeLib table. Instead, they should register type libraries by using the Registry table". Does anyone have any advice on how to do this in a 'Delphi' way for W...
I written an asm function in Delphi 7 but it transforms my code to something else:
function f(x: Cardinal): Cardinal; register;
label err;
asm
not eax
mov edx,eax
shr edx, 1
and eax, edx
bsf ecx, eax
jz err
mov eax, 1
shl eax, cl
mov edx, eax
add edx, edx
or eax, edx
ret
err:
xor eax, eax
end;
// compiled ...
How do you prevent a new event handling to start when an event handling is already running?
I press a button1 and event handler start e.g. slow printing job.
There are several controls in form buttons, edits, combos and I want that a new event allowed only after running handler is finnished.
I have used fRunning variable to lock h...
I'm trying to use records with web services application in Delphi 32, the records defined as
TMyRec = record
Val1:integer;
Val2:string;
end;
TMyClass = class(TRemotable)
private fMyRec:TMyRec;
published
property MyRec:TMyRec read fMyRec write fMyRec;
end;
ITMyService = interface(IInvokable)
['{6283B8DA-C567-4814-906E-32172...
I've built a simple music player in Delphi which plays one track after another.
Now there should be some kind of "pseudo crossfading" in the player. This means that a track should be faded out at its end and the new track (which starts then) should be faded in.
This way I want to avoid those unaesthetic track changes with abrupt crossi...
In Delphi, the declaration of the DivMod function is
procedure DivMod(Dividend: Cardinal; Divisor: Word;
var Result, Remainder: Word);
Thus, the divisor, result, and remainder cannot be grater than 65535, a rather severe limitation. Why is this? Why couldn't the delcaration be
procedure DivMod(Dividend: Cardinal; Divisor: Cardinal;...
How can I in a Delphi application (7, trying to port it to 2010) force the system (XP or 7) to shut down?
...
In Form1 I have PageControl. At run time my program creates tab sheets. In each TabSheet I create Form2. In Form2 I have a Memo1 component. How can I add text to Memo1?
...
I have an application written in Delphi that adds / updates contacts in outlook. The problem I'm having is that if the contact has been deleted in Outlook, the code still finds the contact and updates it - and the contact still remains deleted. Is there a way I can determine if the contact is deleted or undelete the contact?
Roughly t...
I've got a problem with RegEx and Delphi 2k9 (Win32). I get the following Error:
First chance exception at $7C812AFB. Exception class Exception with message 'TPerlRegEx.Compile() - Please specify a regular expression in RegEx first'.
I've got the latest version of TPerlRegEx from the website. Using its defualt settings (Using DLL)
I...