Jump to content

KodeZwerg

Members
  • Content Count

    290
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by KodeZwerg

  1. KodeZwerg

    android camera problem

    With my current little level of knowledge about Android internals, I can only say that you can't force it on the program level. But what you can do is to use the release authorizations (permissions) to oblige the user to enter into a contract with you. So the user is the decisive factor. (As always hehehe) Since my knowledge is poor I will do follow your advice with glance and put my head into documention. Hugging thanks back.
  2. Time is money, you are right. Maybe this Rio link makes you happy. Means that you could Install Delphi CE version for free and it should work straight out of the box. Not really if you have a bunch of custom components installed... But before I would replace my real version, I would test and try such in a VM, not that it suck and all is my fault. Here you could read about details of CE version. Here you could obtain a copy for free. Hope it helps!
  3. 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 :-]
  4. 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?
  5. KodeZwerg

    Save and get images on iOS

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

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

    ObjectAtPoint should be what you searching for.
  7. have you tried "serveur_reponse := serveur.post('http://123.123.123.123/index.php', post_param)" ?
  8. 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).
  9. 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)
  10. 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 🙂
  11. 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.
  12. KodeZwerg

    Read out signed executable certificate possible?

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

    Update hidden file

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

    Update hidden file

    Kisses @Lajos Juhász
  15. 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?
  16. 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.
  17. 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.
  18. 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.
  19. 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.
  20. 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.
  21. 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...
  22. 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?
  23. KodeZwerg

    Update hidden file

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

    Update hidden file

    IMHO you are absolut right. Or from SysUtils FileGetAttr and FileSetAttr. I do prefer WinApi way like you wrote.
  25. 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)
×