All Activity
This stream auto-updates
- Today
-
What does [ref] attribute actually dows
Stefan Glienke replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Yes, no surprise - because const[ref] forces a reference type variable to be passed by reference - build version three of your routines that have their parameter as var, and you will see. Also, your reasoning about what you see is mistaken - if you retrieve the address of a parameter or variable that resides in a register, the compiler will reserve stack space for it to retrieve the address of it. In the case of passing a const string as first and only parameter that one will be passed in eax on 32bit windows, or rcx in 64bit windows - calling @ on that parameter cannot give an address if that parameter stays in the register, hence the compiler generates code to reserve stack space, and puts the value there and retrieves that address. - Yesterday
-
interbase InterBaseSql.Data.InterBaseClient on Arm
douglasP replied to douglasP's topic in Cross-platform
Ok, followup. I had a -- it can't be that obvious -- moment. I built it specific for x64 and not Arm64 on both systems. duh. on the Mac it was in a VMware Fusion - Windows 11 pro Arm64 Session. Check - Worked on the Windows 11 pro Arm64 Developer Kit unit -- Check - worked. LOL! Have a great day! sorry to suck up 3 minutes of your time.- 1 reply
-
- arm64
- apple m series arm
-
(and 3 more)
Tagged with:
-
Just a general request. Anyone have a workaround or sample example for the InterBaseSql.EntityFrameworkCore.InterBase Version=10.0.3 nuget package for Microsoft Visual Studio 2022 on ARM processors? or is this just straight up not supported on arm64? I was just checking to see if this has a solved solution before I expend effort doing so. Baseline: I built a working app on an Lenovo - Intel Pentium Silver - Windows 11 pro that connects to a local IB service using the InterBaseSql.Data.InterBaseClient namespace. I setup the Interbase 2020 Dev Server on an Intel, MacMini with an M4pro, and the Microsoft Dev Kit Arm processor. the IB service works properly with IBConsole on all systems. I saved it to my Github and replicated the project to the other 2 systems. The error I get is the ibclient64 is not found. I placed it in the path of the app (recommended in other solutions on the web) and same result. System.Exception: Client library - ibclient64 not found. at InterBaseSql.Data.Client.Native.WindowsClient.LoadIBLibrary() at InterBaseSql.Data.Client.Native.IBClientFactory.GetGDSLibrary(IBServerType id) at InterBaseSql.Data.Client.Native.IBDatabase..ctor(IBServerType serverType, ConnectionString options) at InterBaseSql.Data.InterBaseClient.ClientFactory.CreateDatabase(ConnectionString options) at InterBaseSql.Data.InterBaseClient.IBConnectionInternal.Connect() at InterBaseSql.Data.InterBaseClient.IBConnection.Open() ...<snipped>... I just need to know if this is a known issue or are there steps I should be doing. I have the GitHub project for Embarcadero/IB.NetDataProvider and have started looking at it. I was just checking to see if this has a solved solution before I expend effort doing so. Didn't know where else to post this in this forum. Thanks, Douglas
- 1 reply
-
- arm64
- apple m series arm
-
(and 3 more)
Tagged with:
-
douglasP joined the community
-
How do I create an Android simulator under Delphi 11.3 ?
Dave Nottage replied to FreeDelphiPascal's topic in FMX
If the emulator is running on the same machine as Delphi, it should appear in the list under the Target node, which is under the Android platform nodes in Project Manager in Delphi. What is the actual issue you are having? -
What does [ref] attribute actually dows
Dalija Prasnikar replied to Tommi Prami's topic in RTL and Delphi Object Pascal
I think that original need to introducing [ref] was the need to force passing value parameters as references so they would match some cross platform API. I don't remember whether that was merely a difference between 32-bit and 64-bit Windows platforms, or there were other OS involved. I also don't remember whether C++ Builder support also had something to do with it. AFAIK, Allen Bauer explained this somewhere. I am not sure if this was only on his blog or it was also mentioned on old forums. New FreeAndNil implementation came years later and it merely used the feature that was introduced for other reasons. -
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
PeterPanettone replied to PeterPanettone's topic in Windows API
Ah, I've found it here: C:\Users\<username>\Documents\Embarcadero\Studio\23.0\CatalogRepository\WindowsAPIfromWinMD-1.0\Windows.System.Threading.pas Very nice! Unfortunately, the GetIt installer does not add WindowsAPIfromWinMD-1.0 to the Library Path. -
I'm working on a component derived from a TTabControl. I want to manipulate the individual tabs in various ways. To do so I need to override the DrawTab event. This works well until you activate a theme and then the DrawTab event doesn't fire unless you disable seClient for styleElements., which I don't wish to do as I don't want to have to try and draw the body. If I add a TTabControl to a form and then access its OnDrawTab event, I can override the themed drawing of the tab with a theme active even though seClient styleElements is true. That seems a bit odd to me. I have tried catching various paint messages and tab drawing messages, but nothing seems to fire in my custom control with seClient set to true. Is there a way of doing this?
-
FireDAC connection lost on setting TFDQuery's SQL.Text
Mark Williams replied to Mark Williams's topic in Databases
I posted this a day or so ago. Its disappeared! Thanks for the perseverance. I've given up hope of finding out what's causing this. The FindConnection kludge seems to do the job! -
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
PeterPanettone replied to PeterPanettone's topic in Windows API
Hello DelphiUdIT, Thanks for the hint. How would you reference PROCESS_QUERY_LIMITED_INFORMATION from WinMD? I need to use it in this context: hProcess := Winapi.Windows.OpenProcess( PROCESS_QUERY_LIMITED_INFORMATION, // cannot be retrieved from Winapi.Windows False, ProcessID ); So I implemented it as a local constant: const {$IFNDEF PROCESS_QUERY_LIMITED_INFORMATION} PROCESS_QUERY_LIMITED_INFORMATION = $1000; {$ENDIF} -
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Whether or not you want to use asm is not relevant. It's what you do with it that matters. I mean, exactly what you said above would apply equally if you wanted to write the code in pascal. -
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
DelphiUdIT replied to PeterPanettone's topic in Windows API
@PeterPanettone If something of WinApi is missing, you can look at this and download the WINMD from getit: https://docwiki.embarcadero.com/RADStudio/Athens/en/What's_New#WinAPI_Delphi_Headers_from_WinMD_metadata Like they told, Bye P.S.:I use some of those headers to include some functionalities missing in Embarcadero WinApi. -
What does [ref] attribute actually dows
dummzeuch replied to Tommi Prami's topic in RTL and Delphi Object Pascal
If you pass a const parameter which you want to reference by its address in asm code, you need to make sure that it actually is passed as a reference and not in any other form. -
Capture as soon as file paste is selected
Rick Malik replied to Mustafa E. Korkmaz's topic in Windows API
so no to your second question...okay....you guys are long winded... no, but I read the question though somewhere in winuser.h there an undo move, maybe an undo paste... they have to keep track somehow. Where to look? Hey It was a comment. I figured, if you knew who owed it, you could send it back. -
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
PeterPanettone replied to PeterPanettone's topic in Windows API
Doesn't Winapi.Windows pull this constant from Winapi.WinNT.pas? But Winapi.WinNT.pas is also missing. -
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
Anders Melander replied to PeterPanettone's topic in Windows API
Corrupted? Because of a missing declaration? There are lots of stuff missing, at any given time, since new values, structures, and functions gets added to the Win32 API all the time and Embarcadero can't keep up. PROCESS_QUERY_LIMITED_INFORMATION has been missing for ages. Just declare it locally and move on. -
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Why would [ref] be needed to use asm? -
What does [ref] attribute actually dows
dummzeuch replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Maybe if you want to use ASM to access the parameter? -
Too late, moved to https://www.almdev.com/prods/stylecontrols/stylecontrols.html Embarcadero let this package rot for almost 10 years, now suddenly there's an update? Who knows if it’s a real comeback or just a random blip. I’m not getting fooled again.
-
Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found
PeterPanettone posted a topic in Windows API
In my Delphi 12.2 Winapi.Windows.pas unit in Windows 11, the declaration for PROCESS_QUERY_LIMITED_INFORMATION ($1000) constant is missing. Does this mean that my Winapi.Windows.pas unit is potentially corrupted? -
What does [ref] attribute actually dows
David Heffernan replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param? -
bk31415 joined the community
-
I don't see version 8 in GetIt, only version 7. Does it require Delphi 12.3? I'm still on 12.2.
-
Mike T. joined the community
-
Is it possible to cast an anonymous procedure to a procedure of object ?
Uwe Raabe replied to dormky's topic in RTL and Delphi Object Pascal
Wrong thread? What does [ref] attribute actually dows -
Is it possible to cast an anonymous procedure to a procedure of object ?
David Heffernan replied to dormky's topic in RTL and Delphi Object Pascal
Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param? -
FireDAC connection lost on setting TFDQuery's SQL.Text
Olli73 replied to Mark Williams's topic in Databases
You could also try to create a select query and assign it to conection first and let it open until everything was done. This could avoid to the connection to the pool and unassign it.