FredS
-
Content Count
399 -
Joined
-
Last visited
-
Days Won
4
Posts posted by FredS
-
-
3 hours ago, Achim Kalwa said:can't handle the new "TIMESTAMP WITH TIMEZONE" data type
You can execute this statement after connecting to a v4 or v5 db:
'set bind of TIME ZONE to LEGACY'
Â
- 1
-
5 hours ago, Attila Kovacs said:it will also be enough if QP is operational by the time D13 arrives
Yeah, was wondering about that.
As stated back in January it should be up in a week, especially after 'months of planning'..
- 1
-
5 hours ago, PeterPanettone said:How do you install this plugin in Delphi 12? 
Â
I always use RegEdit, check out: HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\23.0\Experts
-
55 minutes ago, FredS said: will try my old noisy 'puter next 🙂
Updating did not install KB5028166 on that one today..
-
15 minutes ago, dummzeuch said:No idea why it works for you
Dunno, its a reasonably new install, only a handful of hotfixes installed.. will try my old noisy 'puter next 🙂
-
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..
-
15 hours ago, pyscripter said:It turns out that the causes of LSP failure were more complex than I originally thought.
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'.
Â
-
4 hours ago, PawelPepe said:But, this can not send mail with default client... so the best is to run any app with normal user privileges.
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..
Â
- 1
-
Once you run elevated you have access to the Scheduler, use Schtasks.exe to Create/Ru/Delete a task to run that app..
 -
11 minutes ago, Fr0sT.Brutal said:MSBuild doesn't expand $(..)-
Â
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%
Â
- 1
-
3 hours ago, Lajos Juhász said:an improved LSP server
The myth of a working LSP server.. since before Godzilla 🙂
- 1
-
13 hours ago, Tommi Prami said:Seems to be active on our App:
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
Â
-
6 hours ago, Fr0sT.Brutal said:should be working with older versions
This hasn't worked for at least 11 years: https://www.codenewsfast.com/cnf/articles
-
5 hours ago, Al T said:if you chose to renew then you have to go for the 2-year option
Â
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..Â
Â
-
23 minutes ago, Clément said:My best guess is that windows zip uses all 3 files combined to achieve a better compression result.
Wouldn't it be simpler just to use ShellAPI and Windows to zip?
-
57 minutes ago, dkprojektai said:Can you share ?
I can show you an example but most of my code uses internal stuff.
But let me make one thing clearer; the action after Beyond Compare is manual NOT automatic..Â
In short, after comparing the prior db creation script with the new one methods within the Patching unit are called manually..
Â
This example increase the Size of a [N]Varchar Column using UniDAC, FB3/4 and SqlServer dbs:
/// <summary> /// Increase the Size of a [N]Varchar Column /// </summary> /// <param name="NullKind"> /// Must be given else some dbs default to allowing nulls when you make changes /// </param> class procedure TExecSqlPatch.IncVarChar(const Con: TUniConnection; const ATable, AColumn: string; const NewSize: Word; const NullKind: TNullKind); {$REGION 'History'} // 29-Aug-2018 - ExecuteSQL does not return any usefull count for these Block calls {$ENDREGION} var sql: string; begin case Con.DbProvider of dbFirebird: begin sql := 'EXECUTE block as BEGIN ' + ' if (exists(select 1 from RDB$RELATION_FIELDS rf where rf.RDB$RELATION_NAME = :TableName and rf.RDB$FIELD_NAME = :ColumnName))' + CRLF + ' then execute statement ' + 'ALTER TABLE :TableRaw ALTER COLUMN :ColumnRaw Type VARCHAR(:NewSize)'.ToQuoted + SEMICOLON + CRLF + 'END'; sql.ReplaceParams([ATable.ToUpper, AColumn.ToUpper, ParamRaw + ATable.ToUpper, ParamRaw + AColumn.ToUpper, NewSize]).Error.Assert; Con.ExecuteSQL(sql); sql := 'EXECUTE block as BEGIN ' + ' if (exists(select 1 from RDB$RELATION_FIELDS rf where rf.RDB$RELATION_NAME = :TableName and rf.RDB$FIELD_NAME = :ColumnName))' + CRLF + ' then execute statement ' + 'ALTER TABLE :TableRaw ALTER :ColumnRaw :NullKind NOT NULL'.ToQuoted + SEMICOLON + CRLF + 'END'; sql.ReplaceParams([ATable.ToUpper, AColumn.ToUpper, ParamRaw + ATable.ToUpper, ParamRaw + AColumn.ToUpper, ParamRaw + cFB3NullKind[NullKind]]).Error.Assert; Con.ExecuteSQL(sql); end; dbSQLServer: begin sql := 'IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE [TABLE_NAME] = :Table AND [COLUMN_NAME] = :Column) ' + CRLF + 'BEGIN ' + CRLF + ' ALTER TABLE :TableRaw ALTER COLUMN :ColumnRaw NVARCHAR(:NewSize) :NullKind ' + CRLF + 'END '; sql.ReplaceParams([ATable.ToUpper, AColumn.ToUpper, ParamRaw + ATable.ToUpper, ParamRaw + AColumn.ToUpper, NewSize, ParamRaw + cMSSQLNullKind[NullKind]]).Error.Assert; Con.ExecuteSQL(sql); end; else raise ENotImplemented.Create('Not Implemented'); end; end;
Â
- 1
-
7 hours ago, dkprojektai said:Asking for advice quicker solution.
I wrapped most Alter statements into a 'SQL.Patching.pas' unit which fires what is needed depending on a version field at startup.
Found the simplest way was to make all changes and then use Beyond Compare on the db creation script to generate an output which is used to call the methods in the Patching unit. -
13 hours ago, mikerabat said:MachineGuid
I've seen that change when the Windows license is changed.
-
Maybe you need to open the port in the Firewall(s)..
-
3 hours ago, ParodiusX said:that’s not the problem
Adding this to the unit worked for me:
{$RANGECHECKS OFF}
Â
-
5 hours ago, Vandrovnik said:ldapsend.pas
Â
9 minutes ago, Lainkes said:there I don't know
I don't use that unit, you'll need to figure out how searches are made using it.
Â
-
1 hour ago, Lainkes said:retrieve a field
Use
ldap_search_sW
Â
-
-
22 hours ago, Silver Black said:native simple bookmarks
Sure, sometimes I use Notepad++ bookmarks and its Editor.. 🙂
- 1
Delphi 12: internal errors
in Delphi IDE and APIs
Posted
Can you open an RSP on that 😂