FredS
Members-
Content Count
399 -
Joined
-
Last visited
-
Days Won
4
FredS last won the day on February 13 2022
FredS had the most liked content!
Community Reputation
138 ExcellentTechnical Information
-
Delphi-Version
Delphi 10.1 Berlin
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Can you open an RSP on that 😂
-
Firebird 5.0 with dbExpress (Delphi 12): unknown ISC error 0
FredS replied to Achim Kalwa's topic in Databases
You can execute this statement after connecting to a v4 or v5 db: 'set bind of TIME ZONE to LEGACY' -
What new features would you like to see in Delphi 13?
FredS replied to PeterPanettone's topic in Delphi IDE and APIs
Yeah, was wondering about that. As stated back in January it should be up in a week, especially after 'months of planning'.. -
David Hoyle's 3rd Party IDE Help in Delphi 12?
FredS replied to PeterPanettone's topic in Delphi IDE and APIs
I always use RegEdit, check out: HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\23.0\Experts -
Warning: Windows Update KB5028166 breaks NT Domains
FredS replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Updating did not install KB5028166 on that one today.. -
Warning: Windows Update KB5028166 breaks NT Domains
FredS replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Dunno, its a reasonably new install, only a handful of hotfixes installed.. will try my old noisy 'puter next 🙂 -
Warning: Windows Update KB5028166 breaks NT Domains
FredS replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I use a Samba Domain on Ubuntu (16.04) and can login with KB5028166 installed from a 22H2 W10 VM.. I used a new Domain account to force new profile generation to make sure.. -
Found why LSP stopped working in Delphi 11.2 and 11.3
FredS replied to pyscripter's topic in Delphi IDE and APIs
Little has changed since Godzilla, or maybe some of that is back again. I still use a clean bat when switching between 'Build Configurations', that limits the problem even today. What it does is delete all DCUs which exist from all but the current 'Build Configuration'. -
Run process with normal user privileges from elevated process
FredS replied to PawelPepe's topic in Windows API
Not so simple then, I've not seen running code that executes with identical integrity, tokens and access.. A few posts on SO claim to have solved it but the Scheduler works so I've found no need to retest all for that.. ShellRun('Open', 'Schtasks', '/Create /F /SC ONCE /TN taskname /TR "<cmd>" /ST 00:00', swHide); ShellRun('Open', 'Schtasks', '/Run /TN taskname', swHide); ShellRun('Open', 'Schtasks', '/Delete /F /TN taskname', swHide); Add some error checking and it works.. -
Run process with normal user privileges from elevated process
FredS replied to PawelPepe's topic in Windows API
Once you run elevated you have access to the Scheduler, use Schtasks.exe to Create/Ru/Delete a task to run that app.. -
MSBuild - set library paths without touching IDE options
FredS replied to Fr0sT.Brutal's topic in General Help
This is how I compile with older versions of controls.. might help you get started. The CMD file is in the project root and changes directory to Source: @ECHO OFF :: :: How to Redirect to an older Version of VCL :: Since no IDE is required this will work for NON installed versions of any VCL controls ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: Redirect DX, to compile with source we need to update all these ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: REM @SET DXVCL=%VCL%\DevExpress VCL\20.2.8 (26-May-2021) for PA2-R12 REM IF NOT Exist "%DXVCL%" ( REM echo."%DXVCL%", Directory does not exist REM Pause ) REM CALL :SetEnvVar "DXLibs" REM CALL :SetEnvVar "DXSources" REM SET DX REM pause :: :: Redirect UNI, to compile with source we need to update all these ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: REM @SET UNIVCL=%VCL%\UniDAC\9.0.1 (14-Sep-2021) REM IF NOT Exist "%UNIVCL%" ( REM echo."%UNIVCL%", Directory does not exist REM Pause ) REM CALL :SetEnvVar "UNILIB" REM CALL :SetEnvVar "UniSources" REM SET Uni REM pause :: :: Environmental Vars declared in the IDE must be redeclared ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @SET CompilerV=28 @SET ProductVersion=22.0 @SET IDEVER=11.0.2 :: :: Now expand those with rsVars.bat ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: call "C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\rsvars.bat" :: :: Reset the rsVars.bat defaults ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @SET BDSCOMMONDIR=D:\Embarcadero Studio\22.0 :: :: Add the location of cmd.exe ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @SET PATH=%WINDIR%\System32;%PATH% cd source :: Recomended in 10.4 Release Notes.. MSBuild APP.dproj /t:clean REM TIMEOUT /T 10 MSBuild APP.dproj /t:build /v:q /p:Config=Release /p:platform=Win64 cd .. :: View any output notices pause :: ========== FUNCTIONS ========== EXIT /B :: Read a Value from Environment :: Param 1: Name of output variable. :: Param 2: SubKey. :RegQueryEnv @ECHO OFF SET KEY="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" :: Remove the double quotes Set SUBKEY=%~2 FOR /F "skip=2 tokens=2,*" %%A IN ('reg.exe query %KEY% /v "%SUBKEY%"') DO ( set %1=%%B ) EXIT /B :: Expand any EnvVars in the Text :: Param 1: Name of output variable. :: Param 2: Text to Expand (%UNIVCL%\Lib\Delphi$(CompilerV)) :ExpandEnvVar @ECHO OFF set %1=%~2 REM echo.ExpandEnvVar=%Text% EXIT /B :: Combines RegQuery and ExpandEnvVar then uses @SET :: Param 1: SubKey. :SetEnvVar @ECHO OFF CALL :RegQueryEnv Value %1 CALL :ExpandEnvVar Value "%Value%" @SET %~1=%Value% -
The myth of a working LSP server.. since before Godzilla 🙂
-
How does the "Address Space Randomization (ASLR)" actually work
FredS replied to Tommi Prami's topic in General Help
I don't have 11.2, but the fact that madExcept needed an update to deal with ASLR tells me its finally working. Redux: https://blog.marcocantu.com/blog/rad111_pe_security.html -
How does the "Address Space Randomization (ASLR)" actually work
FredS replied to Tommi Prami's topic in General Help
This hasn't worked for at least 11 years: https://www.codenewsfast.com/cnf/articles -
Update Subscription: Embarcadero policy seriously this bad?
FredS replied to Al T's topic in Delphi IDE and APIs
I didn't renew last February and in the good bye letter from EMBT there was something about being able to reactivate it.. I don't have it handy but pretty sure there was a period specified when it can be reactivated. Maybe you better clarify that with subscriptions..