In the code below when the user clicks on the file the appriopriate app starts
if the user starts the app then a defaultfile called CfgFile get loaded.
When the defaultfile gets loaded the name CfgFile is stored in the variable CurrentFile
But how to get the filename of the file the user clicks in the explorer.
if ParamCount > 0 then
CurrentFile := ??????????? //how to put the filename the user clicks on in the string CurrenFile?
ExeDir := ExtractFilePath(ParamStr(0));
CfgFile := IncludeTrailingBackslash(ExeDir) + 'Emu3270.emr';
CurrentFile := CfgFile;
if LoadOptions(CfgFile) then
ShowMessage('Warning: Errors found in config file: ' + CfgFile);
Managing Active Directory does not always have to be complicated. If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why
A lot of questions regard threads in Delphi.
One of the more specific questions is how to show progress of the thread.
Updating a progressbar from inside a thread is a mistake.
A solution to this would be to send a synchronized message to the…
The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…