Jump to content

KodeZwerg

Members
  • Content Count

    289
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by KodeZwerg

  1. KodeZwerg

    android camera problem

    Hello Hug emailx54 and Chester, isnt it that nowadays the Android system uses stronger battery saving features? To always be able to run tasks in background is what a User tells his Android -> allow/set background-tasks manually. Am i wrong? I just found this info about how to create background tasks, there is nothing about Android setting explained... mhhhhh strange world. noHug, Corona forbid it :-]
  2. Hmmm, on docwiki it say But if XE7 has same feature.... Could you try install fresh Delphi Trial in a VM to test if compiled run good?
  3. KodeZwerg

    Save and get images on iOS

    Have you tried load/save with TBitmap."Save/Load"ToFile(TPath.Combine(TPath.GetDocumentsPath, 'myApp') + 'FileName.ext') ?
  4. KodeZwerg

    [FMX][Android]How get control name under the click?

    ObjectAtPoint should be what you searching for.
  5. have you tried "serveur_reponse := serveur.post('http://123.123.123.123/index.php', post_param)" ?
  6. My guess would be, that needed additional files are missing or can not be found. For Windows thats often *.obj files wich include the reported method (error: undefined reference to ...X).
  7. KodeZwerg

    Trying to share a text file

    I dont know if it is in same context, maybe the Api explaination can help you do what you want to do? (upload a file)
  8. KodeZwerg

    IsElevated

    You might love the ease of use aswell. Never had any kind of problems so far. Only limitation is when you execute elevated code. That depend on your code. To write files or registry data it worked flawless for me so far. Enjoy it 🙂
  9. KodeZwerg

    IsElevated

    RunElevatedSupport.pas is what I use. Call IsElevated (Boolean) thats all you need to do. Also offers to elevate code pieces. I love it.
  10. Good day, I would like to have ability in my project to show certificate details of signed executables. (From other executables) Is that possible with Delphi? Would love to get hints 'how-to'! //edit For now I have ability to get raw data thats appended to executables (overlay data) by simply check PE header for filesize and compare with real physical filesize.
  11. KodeZwerg

    Read out signed executable certificate possible?

    Will try to follow those steps, thank you for link!
  12. KodeZwerg

    Update hidden file

    Sorry for another beginner question. Why you call it that way? Isnt lFileName not already a PChar at that moment?
  13. KodeZwerg

    Update hidden file

    Kisses @Lajos Juhász
  14. KodeZwerg

    Update hidden file

    I got a flashing bulb over my head 💡 Now I do understand what you both wrote, I was not aware that you had a TStringList.SaveToFile() replacement in mind. By reading CreateFileW() doc I wonder what happen with created Handle. Wouldnt it be better to split it up and call CloseHandle() afterwards?
  15. KodeZwerg

    Update hidden file

    Thank you @Remy Lebeaueven if I dont understand why telling me. TStringList.SaveToFile() uses internal TFileStream.Create() with fmCreate flag where normal users have no access to. If you say my answer is wrong please explain to learn from. To make myself clear, my steps: 0. "Var VariableX: DWORD" 1. Get attributes "VariableX := GetFileAttributes(PChar(FileName))" 2. Clear attributes to have write access "SetFileAttributes(PChar(FileName), FILE_ATTRIBUTE_NORMAL)" 3. Invoke "TSringList.SaveToFile(FileName)" 4. Restore SetFileAttributes(PChar(FileName), VariableX)" If I typed correct this is how it work, no? Missing things like checking for existance and that it is a file.
  16. Since it is like you said, I do {$I includeme.inc} with above mentioned content straight after every 'unit xyz;' line of code (mostly just for libraries, executables only when it matters). Saves here and there some bytes, depending on used units.
  17. KodeZwerg

    Install flag to say it's for ALL USERS?

    That is why I requested 'what it should contain'. Anything special? I will search MSDN to get answer. What I understood so far: No manifest = no write permission. Inside manifest no admin status needed. Somehow dog bites his tail. No need to reply.
  18. KodeZwerg

    Install flag to say it's for ALL USERS?

    My demo would try to write to HKCU. Since you mentioned manifest, I've asked for advice what it should contain to properly work.
  19. KodeZwerg

    Install flag to say it's for ALL USERS?

    In my apps I do save settings in a file inside user folder so no admin is required. Now you make myself nervous, I will build a test project to confirm what you told. Question: What should be in manifest to let it work? I do not know any special setting yet to allow writing beside Admin. Thanks in advance.
  20. KodeZwerg

    Update hidden file

    Hmm... that I need to try. I would thought that it had ARCHIVE flag set, NORMAL would be no attribute. To be continued...
  21. KodeZwerg

    Install flag to say it's for ALL USERS?

    Hmmm.... Reading okay, agree. Writing not agree. I do need admin privilege to write else Windows virtualize my written stuff and its gone on restart. Am I wrong?
  22. KodeZwerg

    Update hidden file

    Yes you miss something. Get attribs, set attribs without readonly/hidden flag, save file, restore original attribs.
  23. KodeZwerg

    Update hidden file

    IMHO you are absolut right. Or from SysUtils FileGetAttr and FileSetAttr. I do prefer WinApi way like you wrote.
  24. KodeZwerg

    Object Inspector issue in 10.4.2??

    My virgin Rio has same drawing/refresh problem with whatever I have open in OI. Equal if I do use WideScreen or FullHD (scaling 100% in both cases) But how to reproduce if it happen random... no idea. (Virgin = no 3rd party installed at all)
  25. KodeZwerg

    JEDI files cannot find windows files

    3rd wild guess: Re-Installed Delphi.... I wonder if there is some old data in registry or file system conflicting installation to work properly?
×