Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. Stefan Glienke

    What does [ref] attribute actually dows

    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.
  3. Yesterday
  4. douglasP

    InterBaseSql.Data.InterBaseClient on Arm

    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.
  5. 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
  6. Dave Nottage

    How do I create an Android simulator under Delphi 11.3 ?

    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?
  7. Dalija Prasnikar

    What does [ref] attribute actually dows

    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.
  8. PeterPanettone

    Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found

    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.
  9. 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?
  10. Mark Williams

    FireDAC connection lost on setting TFDQuery's SQL.Text

    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!
  11. PeterPanettone

    Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found

    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}
  12. David Heffernan

    What does [ref] attribute actually dows

    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.
  13. DelphiUdIT

    Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found

    @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.
  14. dummzeuch

    What does [ref] attribute actually dows

    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.
  15. Rick Malik

    Capture as soon as file paste is selected

    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.
  16. PeterPanettone

    Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found

    Doesn't Winapi.Windows pull this constant from Winapi.WinNT.pas? But Winapi.WinNT.pas is also missing.
  17. Anders Melander

    Winapi.Windows.PROCESS_QUERY_LIMITED_INFORMATION not found

    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.
  18. David Heffernan

    What does [ref] attribute actually dows

    Why would [ref] be needed to use asm?
  19. dummzeuch

    What does [ref] attribute actually dows

    Maybe if you want to use ASM to access the parameter?
  20. Attila Kovacs

    KSVC 8.0

    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.
  21. Uwe Raabe

    KSVC 8.0

    Probably, yes.
  22. 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?
  23. David Heffernan

    What does [ref] attribute actually dows

    Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param?
  24. Mike T.

    KSVC 8.0

    I don't see version 8 in GetIt, only version 7. Does it require Delphi 12.3? I'm still on 12.2.
  25. Wrong thread? What does [ref] attribute actually dows
  26. Is there any known use case other than the one demonstrated by FreeAndNil, namely to allow modification of a const param?
  27. Olli73

    FireDAC connection lost on setting TFDQuery's SQL.Text

    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.
  1. Load more activity
×