-
Content Count
289 -
Joined
-
Last visited
-
Days Won
3
Everything posted by KodeZwerg
-
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 :-]
-
SSL error 1409442E using TRestClient OAuth2
KodeZwerg replied to pssDP's topic in Network, Cloud and Web
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? -
Have you tried load/save with TBitmap."Save/Load"ToFile(TPath.Combine(TPath.GetDocumentsPath, 'myApp') + 'FileName.ext') ?
-
ObjectAtPoint should be what you searching for.
-
Adressing IP with System.Net.HttpClient
KodeZwerg replied to weabow's topic in Network, Cloud and Web
have you tried "serveur_reponse := serveur.post('http://123.123.123.123/index.php', post_param)" ? -
Have an Linking error while trying to compile a soap web service for using under linux
KodeZwerg replied to Andrey Kondrashov's topic in Cross-platform
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). -
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)
-
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 🙂
-
RunElevatedSupport.pas is what I use. Call IsElevated (Boolean) thats all you need to do. Also offers to elevate code pieces. I love it.
-
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.
-
Read out signed executable certificate possible?
KodeZwerg replied to KodeZwerg's topic in Windows API
Will try to follow those steps, thank you for link! -
Sorry for another beginner question. Why you call it that way? Isnt lFileName not already a PChar at that moment?
-
Kisses @Lajos Juhász
-
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?
-
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.
-
Fighting the bloat: Delphi links unnecessary files (COM library projects)
KodeZwerg replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
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. -
Install flag to say it's for ALL USERS?
KodeZwerg replied to David Schwartz's topic in Delphi IDE and APIs
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. -
Install flag to say it's for ALL USERS?
KodeZwerg replied to David Schwartz's topic in Delphi IDE and APIs
My demo would try to write to HKCU. Since you mentioned manifest, I've asked for advice what it should contain to properly work. -
Install flag to say it's for ALL USERS?
KodeZwerg replied to David Schwartz's topic in Delphi IDE and APIs
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. -
Hmm... that I need to try. I would thought that it had ARCHIVE flag set, NORMAL would be no attribute. To be continued...
-
Install flag to say it's for ALL USERS?
KodeZwerg replied to David Schwartz's topic in Delphi IDE and APIs
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? -
Yes you miss something. Get attribs, set attribs without readonly/hidden flag, save file, restore original attribs.
-
IMHO you are absolut right. Or from SysUtils FileGetAttr and FileSetAttr. I do prefer WinApi way like you wrote.
-
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)
-
3rd wild guess: Re-Installed Delphi.... I wonder if there is some old data in registry or file system conflicting installation to work properly?