Jump to content

Ian Branch

Members
  • Content Count

    1252
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Hi Team, D10.4.1, Indy as supplied with Delphi. I have the following code.. begin // IdSSLIOHandlerSocketOpenSSL1 := TIdSSLIOHandlerSocketOpenSSL.Create(self); // IO HANDLER SETTINGS // with IdSSLIOHandlerSocketOpenSSL1 do begin Destination := 'smtp-mail.outlook.com:587'; Host := 'smtp-mail.outlook.com'; MaxLineAction := maException; <<<<< Error here. Port := 587; SSLOptions.Method := sslvTLSv1; SSLOptions.Mode := sslmUnassigned; SSLOptions.VerifyMode := []; SSLOptions.VerifyDepth := 0; end; I am getting an Undeclared identifier error for maException. Is this a known issue? If so, is there a work around? Will it matter if I comment out the line?? Regards & TIA, Ian
  2. Ian Branch

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    Hi Remy... OK on the Instructions. "svn co https://github.com/IndySockets/Indy/trunk Indy10" using TortiseSVN seems to keep updating.. Currently it is at rev 3791. Am I getting the wrong one?? Ian
  3. Ian Branch

    remove ExplicitXxxx properties

    Hi Guys, I am late to the party here.. Can someone explain what the issue/problem is? How would it manifest itself to me? Why is it good to remove it? i.e. what benefit does it give me? Regards & TIA, Ian
  4. Ian Branch

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    Thinking further down the line when I have this all stable.. What is the easiest/best method to replace the Indy supplied with D10.4, with the latest from GitHub? I have the svn for the latest Indy10 on my D:\Indy10 att. I keep it updated/current. I did try replacing the supplied version with the GitHub version back with D10.3 but screwed the whole thing up. :-(
  5. Ian Branch

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    Hi Remy & Lajos, Thank you for your support. I am up and running. The sample code I started with had assumed the components were on the form, this was part of my problem, once I 'created' the components in the code all dropped into place and the addition of IdGlobal solved the last issue. Regards & Tks again. Ian
  6. Ian Branch

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    Hi Remy, First foray into Indy. I just copied code from another source. Oh! OK. I take it I still need to create the IOHandler and set the other parameters? 'Scoped Enums' - Haven't touched as far as I am aware. I had a look in Building|Delphi Compiler|Compiling and can't see anything that suggests 'Scoped Enums' to me. 😞 I'm guessing if Scoped Enums is On or OFF by declaring MaxLineAction := TIdMaxLineAction.maException; Should resolve it, shouldn't it? Where does TIdMaxLineAction come from? Regards & Tks, Ian
  7. Ian Branch

    convert Procedure to a Unit??

    Hi Team, Before I stumble blindly into something I have no knowledge of. Again.. ;-) I have a very large procedure in an App that is called infrequently. I would like to extract it into a separate Delphi Unit that can be created/used when/if required. Is there a mechanism/tool to pick up the procedure and create a Unit out of it or embed it into a Unit? Regards & TIA, Ian
  8. Ian Branch

    convert Procedure to a Unit??

    Oh. I did not know that. Kinda defeats my intended/desired purpose then. Oh well. Back to the drawing board. Thanks to all for your input. Regards, Ian
  9. Hi Team, Given two Integers, one recording hours, the other minutes, how do I then convert them into a single datetime type value for saving to a DateTime field in a table.? The hours integer value can be anything from 0 to 999. Minutes 0 to 59. I need to be able to reverse that as well. i.e. take the db datetime field and convert it to the two integer values for display. Regards & TIA, Ian
  10. Ian Branch

    ANN: DDevExtensions is now on GitHub

    Hi Team, Has anybody tested/validated under D10.4.1? Ian
  11. Ian Branch

    Convert two Integers to a DateTime??

    Hmmm. Having written as I have above it is actually quite easy. Please ignore my Query/Question. Regards, Ian
  12. Ian Branch

    Convert two Integers to a DateTime??

    All. The DB Table field I need to work to/from is a Decimal field. It is an existing field that a DBComponent is accessing but is giving issues. I want to eliminate that component and use two Integer inputs and convert them to the Decimal field. 2hrs & 30 mins converts to 2.5, 55 hrs & 45mins converts to 55.75, etc.
  13. Ian Branch

    Convert two Integers to a DateTime??

    Oooops. You are correct, it is a Decimal field. Apologies, had Time on my mind and, well, call it a Senior's Moment. 😞 Ian
  14. Ian Branch

    A component named DotNetForm already exists.????

    Hi Baron, I couldn't say but all things are possible. 🙂 It still happens from time to time but I live with it att. Ian
  15. Ian Branch

    TaskMessageDlg('.... behind form?

    HI Remy, Thank you for the clear and informative response. Another thing I have learnt today. If/when they provide actual evidence of the issue, again it is only hearsay att, I will implement the "TaskDialog1.Execute(Self.Handle);" method to see if that 'cures' it. Regards & Tks again, Ian
  16. Ian Branch

    Try-Finally-end; & Exit??

    To All, Regrettably my skills & knowledge are not at your depth. If they were, then I wouldn't have needed to ask the question. I have also always been a believer that if you have a question in your mind then someone else probably has too. Ergo, ask it, and get the answer and at the same time make the answer available to others. In this particular case, I looked at Exit but not at Try-Finally. Why, I don't know, it simply didn't occur to me. I'm going to call it a Senior's Moment. My thanks to those that have responded and clarified the issue for me and I unreservedly apologise to all inconvenienced by responding to my question. I will attempt to do better next time. Ian
  17. HI Team, D10.4.1. Can I change the default width of a TaskMessageDlg? I can't find any way to do it. :-( Regards & TIA, Ian
  18. Ian Branch

    Can the width of TaskMessageDlg be set?

    Tks Anders. It was worth the ask to confirm one way or the other. Cheers, Ian
  19. Ian Branch

    Library Path disappeared??

    Hi All, D10.4.1, Windows 10 64 bit. Somehow my 32 bit Library path totally disappeared. Any thoughts where I might find/recover it?? Regards & TIA, Ian
  20. Ian Branch

    Library Path disappeared??

    Hi emailx45, Thanks for your input/suggestion. I went to that registry entry and it was empty. I then remembered the Delph keeps a history of sorts of changes to the Library Path. See attached. I selected the last one, it was incomplete, but was able to add those paths missing. Relatively painless. So, I have two questions now.. 1. Why did it happen in the first place?? I will leave that in the hands of the Windows Gods. 2. Where does Delphi keep this History? I would like to make sure it is appropriately backed up. Regards, Ian
  21. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahhh. I see it now. Didn't think at all of a separate App. Regards & Tks. Ian
  22. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahh. Thank you. At least I know it is possible. :-) Pardon my ignorance but which would be the easiest to achieve? Without giving me the answer, can you point me where to look? Regards, Ian
  23. Ian Branch

    Internet time sync - with some timeout

    You might also want to test the success of SyncTime.. ... .... if Sntp.SyncTime() then Log('SetSystemTime(): System clock sync completed') else Log('SetSystemTime(): System clock sync failed'); .... .... It fails on my Win 10 PC and on a 2012 Server. It is OK if the App is run as Administrator. I wonder if there is a way to have just the routine run at elevated level??? Ian
  24. FWIW see attached. Regrettably, I can't recall where I downloaded it from. EIAES Encryption.zip
  25. Ian Branch

    Main Form appearing issue..

    Hi Team, D10.4.1, 32bit App, Windows 10. I think I have chased this up once before but I can neither find it or recall where. Please see the attached short video. At the start the Main Form is open. Click the Audio button and the Audio form is opened, then the Print Listing option selected. Note the Main Form appears at the same time but under the Print dialog. When the Print dialog is closed they both disappear. Obviously I don't want the Main Form to appear when the dialog is called, even though it doesn't hamper the usage. As far as I can tell, everything is being called correctly. I am open firstly to understanding why the Main Form is appearing, and secondly, how to prevent it. Regards & TIA,. Ian MMLIssue.mp4
×