Jump to content

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 Excellent

Technical Information

  • Delphi-Version
    Delphi 10.1 Berlin

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. FredS

    Delphi 12: internal errors

    Can you open an RSP on that 😂
  2. You can execute this statement after connecting to a v4 or v5 db: 'set bind of TIME ZONE to LEGACY'
  3. Yeah, was wondering about that. As stated back in January it should be up in a week, especially after 'months of planning'..
  4. FredS

    David Hoyle's 3rd Party IDE Help in Delphi 12?

    I always use RegEdit, check out: HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\23.0\Experts
  5. Updating did not install KB5028166 on that one today..
  6. Dunno, its a reasonably new install, only a handful of hotfixes installed.. will try my old noisy 'puter next 🙂
  7. 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..
  8. 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'.
  9. 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..
  10. Once you run elevated you have access to the Scheduler, use Schtasks.exe to Create/Ru/Delete a task to run that app..
  11. 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%
  12. FredS

    Code completion failure

    The myth of a working LSP server.. since before Godzilla 🙂
  13. 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
  14. This hasn't worked for at least 11 years: https://www.codenewsfast.com/cnf/articles
  15. 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..
×