

mvanrijnen
Members-
Content Count
489 -
Joined
-
Last visited
-
Days Won
1
Everything posted by mvanrijnen
-
PDF File Send as Base64 from c# to Delphi REST
mvanrijnen replied to mazluta's topic in Network, Cloud and Web
Are the totally different, or: - Is it just the padding that differs - Is the .Net B64 a long string, and the Delphi B64 is multilne (a string with CR/LF's in it?) Can you dump here the 2 different strings?, use a testfile! -
ah, thats new for me 🙂 , in that case, dump the manual downloaded sqlite DLL 🙂 and just use FireDac
-
also for community edition?
-
It's one of the (many) main reasons, at the moment, (aside Costs/Investments & Time) not to move to other Development environment, yes. There's a lot of code in triggers etc, which is a factor not to move to other database, at this moment. Of course is moving to an whole other platform bringing a lot of costs and time, 20years of development in the main application here, it's not that we have that written to .Net (for example) in 6 months, probably will take years. okay Only thing was a bit overdone 😉
-
Probably some needed DLL which is not on your system (or incorrect version), can you see something in the windows event viewer (Windows -> Application logs) ? or try to run it from a seperate cmdline instance, maybe you then see some error message? or try to trace what files are tried to be loaded using procmon (from sysinternals).
-
Troubleshoot SSL/TLS connection with Indy
mvanrijnen replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
In C#/,Net i (years ago) intercepted the DLL loads (long time ago), i could log them, and maybe (can't remember divert them). Within that method i could test versions (for win32 dll as for ".net assembly dll") and decline them. (Was nice back then to find out .Net searched DLL's in another place on devices with VisualStudio installed on them) -
Move to a production Environment which is: - More affordable (read for more less expensive) - More supported - Far more developers worldwide - More 3th party components/development - Developed with a longterm vision, not a "grab as much money as you can" vision Only thing whats holding us back is the transition to a whole new environment, we probably should move from DB also (because we're "locked" to Interbase at the moment). But we'r getting there, more and more Management thinks with us, so gonna see wich new projects can be (partly) be done in a new development ecosystem. It's a pitty with me (with me Colllegue) think that Delphi (or better Pascal) is one of the most practical/readable dev languages whilest compiling one of the most fastes executables (win32). (I started with TurboPascal 5.5, good old times 🙂 ). The sneaky way how EMB moved the subscription from backwards support (whats was the promise when we started with it) to the only fixes in new releases (with new bugs) was/is really a stab in the back to developers. It's really a product of this century, "how to get as much out of our customers with the least effort", lock and squeeze. The example of not getting the LSP (codecompletion, error in sigth and others) in order in many years is the perfect example for this. Maybe it finally fixed in version 15.xxxx and we are tenthousands of dollars investment in the product (as customer) further down the road. Now i go back to work 🙂 , pretend to be happy with 11.3, which i have to start half of the times of his predecessor. [edit] It's a feeling like, paying for a new Mercedes E series but driving a 20year old Ford Ka.
-
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
maybe another tip, try somethings like https://mitmproxy.org/ to spy on the request you send. if the request works with Postman but not with your code, something has to be different. [edit] Can something go wrong because you use the ExecuteAsync, can't see that with the code you proviced ? (try it with Execute and see if if works then?) -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
i have this, maybe you can the with the scope i use, i only use Application type, not Delegated: LRequest.AddAuthParameter('scope', 'https://graph.microsoft.com/.default', TRESTRequestParameterKind.pkREQUESTBODY); i read that it works with postman, so it would not be the scope then. i'm trying to remember because i've had problems in the beginning also with authorization with the msgraphapi (i needed the poDoNotEncode) The RestRequest method = rmGet i assume? -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
How do you get your accesstoken ? You use the right scope when you do this? -
Never used TZip after i discovered a few years ago that it accepted large files without error/exception, but they wouldn't be in the zip 😞
-
Register COM Object for create process/Fightiing AntiVirus
mvanrijnen replied to RTollison's topic in General Help
i think @Fr0sT.Brutal meant, to run it without real comping, so you can see if delay is in starting the Exe itself of the compiling process. -
Register COM Object for create process/Fightiing AntiVirus
mvanrijnen replied to RTollison's topic in General Help
Try to: Add sourcecode folders as exclusion for AV. Add your programs own work/temp folder as exclusion for AV. If the compiler creates executables (or object files), make sure these are linked/copied into a folder checked with the AV. -
Already taken 😎
-
Make an aftershow method, See here: SwissDelphiCenter.ch : ...implement AfterShow, AfterCreate events? I use this in baseforms, added a "FirstShow" boolean in the form, so you know if you have to do all calcs all the time or nly one time. So in my base form i have protected methods like procedure DoBeforeShow(const AFirstshow : Boolean); virtual; procedure DoAfterShow(const AFirstshow : Boolean); virtual;
-
Delphi compiled EXE are flagged as malware by anti virus software
mvanrijnen replied to Jaska's topic in General Help
i'v had this problem while back when using the MARS library for example (BitDefender), while others didn't. It's sometimes a weird thing. But there are always have been things about this with Delphi compiled software somehow. -
Looks good, you gonna release the SQL classes apart from the HTML Library ? btw where did you learn to type that fast ? 😉
-
Problem with this kind of panels is that the space where icon is placed (in "collapsed/closed" mode) is taken for other components.
-
to extract from existing executable use: Mt.exe - Win32 apps | Microsoft Learn "C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\microsoft.windows.sdk.buildtools\10.0.22621.755\bin\10.0.22621.0\x86\mt.exe" -inputresource:mydelphiprogram.exe -out:mydelphiprogram.manifest
-
Maybe fake a WSUS installation, just put the regkeys for WSUS client into the registry (without having the WSUS server).
-
D11.3, Search, Whole words only - randomly checked
mvanrijnen replied to mvanrijnen's topic in Delphi IDE and APIs
I've put "readonly" in the registry on: Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Search see if that helpers -
What is the benefit of sorting the Uses clause?
mvanrijnen replied to RCrandall's topic in MMX Code Explorer
Actually this means there is a design flaw (i know, hard to not have this situations, we have them also, but in reallity it's something to fix i think). How you going explain 15years later that unit xyz has to be before unit abc, put some text in comments ? -
Okay, problem with one of our local apps here. * App runs fine on all computers except one. * This one is a specific laptop (HP ZBook xxxxx, with an Integrated (i7-7thgen) and NVIDIA P600 Quadro videocard. The one specific app does not draw fully, some panels/buttons etc are not drawn, but specially also the mouse cursor is different. So for a quick solution i told the user to use a virtual machine (logon with RDP from his laptop), on this virtual machine everbody can work with the App, BUT for the user on the laptop the same effect,even when using the app on a different machine through RDP. (we just using simple RemoteDesktop for this). All other apps work just fine on the laptop Anyone any clue or where too look/dig for a solution?
-
Strange behaviour Windows VCL app on specific laptop
mvanrijnen replied to mvanrijnen's topic in VCL
A, at the end (after months) we (accidently) discovered that is was because of Windows Scaling (was set to 300%). -
... <application android:persistent="%persistent%" android:restoreAnyVersion="%restoreAnyVersion%" android:label="%label%" android:debuggable="%debuggable%" android:largeHeap="%largeHeap%" android:icon="%icon%" android:theme="%theme%" android:hardwareAccelerated="%hardwareAccelerated%"> <!-- **** ADD THIS SECTION **** --> <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.embarcadero.yourAppName.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/> </provider> <%application-meta-data%> <%services%> ... Take a look here: Delphi Android file open failure with API 26 - Stack Overflow? maybe hat works, and maybe you first have to ask access with credentials? editing goes wrong in the forum sometimes 🙂