-
Content Count
1245 -
Joined
-
Last visited
-
Days Won
28
Everything posted by Sherlock
-
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
So...what was the problem then? How did you solve it in the end? I bet there is somebody out there still fighting with this issue. -
August 2020 GM Blog post
Sherlock replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
As far as I can tell AP is writing about https://github.com/pyscripter/python4delphi which (in short) is a Python wrapper. It would be cool to script the Delphi IDE with Python, but I consider that to be a construction site worth leaving be at this time. -
With so many computers lying around, why is there no room for one with a correctly setup iptables and transparent squid(guard) with updating black lists? Better yet, IPCop + Squid? Windows is simply not safe to be directly connected to the Internet, no matter how much you fiddle around with its security settings. Seriously!
-
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
OMG...I just saw, I copied the wrong declarations to the interface. My bad! Corrected here: type TForm1 = class(TForm) Edit1: TEdit; Label1: TLabel; Label2: TLabel; Button1: TButton; MemoLog: TMemo; procedure BtnClick(Sender: TObject); procedure FormCreate(Sender: TObject); procedure OnServiceConnectionChange(Sender: TObject; PushChanges: TPushService.TChanges); procedure OnReceiveNotificationEvent(Sender: TObject; const ServiceNotification: TPushServiceNotification); But good on you, that you spotted the problem and solved it! -
Soap Server and client downloading files
Sherlock replied to alnickels's topic in Network, Cloud and Web
Just let the server provide the client with a download link. Using soap to download data is quite cumbersome in my experience. Cumbersome meaning slow...and you might even need to convert binary data to a readable format like base64 server side and reconvert client side, costing more performance. -
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
Ummm, no. those methods are intended to be part of the class TForm1. So add those declarations to the class declaration: type TForm1 = class(TForm) Edit1: TEdit; Label1: TLabel; Label2: TLabel; Button1: TButton; MemoLog: TMemo; procedure BtnClick(Sender: TObject); procedure FormCreate(Sender: TObject); procedure BtnClick(Sender: TObject); procedure FormCreate(Sender: TObject); Like this... -
And I bet they hate you for it
-
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
Damned be those blogs... The target of this blog is obviously a more experienced clientele, and Marco failed to mention that. What you did in post #4 was half way right. You need to add the declaration of those methods in the interface of the class TForm1 as well - right after FormCreate should be fine. -
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
OK, that is not enough. You need to expand the declaration of your TForm1 class to include the definition of those methods. I suggest you work through some form of Delphi primer first. Just to get to know the basics. -
I am getting TPushServiceConection undeclared
Sherlock replied to Gary Wardell's topic in General Help
What do you mean "when I do this"? Do you enter those procedure stumps without interface declaration? Please check the documentation on this http://docwiki.embarcadero.com/RADStudio/Rio/en/Procedures_and_Functions_(Delphi) -
Slightly OT: dhsPinger has an ominous ring to it. Pinging the DHS sounds like something you should not do lightheartedly.
-
Aye, there's the rub. I propose exchanging DotNet with <SomeLanguage>. But folks keep saying "I want <SomeLanguage> feature x, because that is so cool, and I simply can't write my application without it". And then we get some half cooked thing which resembles <SomeLanguage> feature x by intent, but is buggy and breaks other stuff...
-
Something tells me, it was not the team that took that bite...
-
Yeah, all the cool kids want to JavaScript, while banks and insurance companies are going out of their way to pay regal salaries to those old COBOL geezers. COBOL delivers, where JS just looks shiny.
-
I didn't read the book, but I'm guessing that only applies when you add those programmers to the same problem. Luckily Delphi has a ton of problems, that could each feed a programmer for at least a month
-
How to increase the distance between TCheckBox glyph and caption text?
Sherlock replied to PeterPanettone's topic in VCL
And in the end, what is the effort worth? Just to say: "In my product 1+1 is still 2 but it looks better than the others". -
How to increase the distance between TCheckBox glyph and caption text?
Sherlock replied to PeterPanettone's topic in VCL
That will fail quickly for word wrapped captions. -
FreeAndNil 10.4 vs 10.3.1 and Pointers
Sherlock replied to Sherlock's topic in RTL and Delphi Object Pascal
I don't hate them, I just don't need them. 😉 -
FreeAndNil 10.4 vs 10.3.1 and Pointers
Sherlock replied to Sherlock's topic in RTL and Delphi Object Pascal
I have gone through the code and replaced those pesky FreeAndNils with FreeMem or Dispose, whatever fit. It compiles fine now, but next step is to redesign the code to get rid of those ancient pointer thingies altogether. Quite annoying. Thanks everyone for your help and insight! -
FreeAndNil 10.4 vs 10.3.1 and Pointers
Sherlock replied to Sherlock's topic in RTL and Delphi Object Pascal
You could think that to be the reason, but I'm looking at code with tons of PArrayOfByte like what I posted. This seems like some very, very old code and an array of byte is rarely implemented as a class is it? Much less back in the olden days. -
FreeAndNil 10.4 vs 10.3.1 and Pointers
Sherlock replied to Sherlock's topic in RTL and Delphi Object Pascal
@Dalija Prasnikar Thank you! I thought that might be the reason. Which brings me to my earlier question: Why use FreeAndNil on Pointers in the first place? Do you have any idea? -
Translations of the exception notification dialog text
Sherlock replied to dummzeuch's topic in Delphi IDE and APIs
German is OK as well I would always use indexed format specifiers though. -
Sorry, didn't catch the subform. Can't help then.
-
We are not aware of the complete wording of said offer, that is something between Andreas and Embarcadero. What we do know from past statements however, is that some form of NDA or other contracts might be involved. But lets not speculate. IDEFixPAck will come once Andreas gets to install a 10.4 CE, which will come out with 10.4.1. So keep your fingers crossed, that this well be soon enough.
-
Do you mean named pipes?