These are chat archives for IndySockets/Indy

24th
Sep 2018
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 00:57
Hi. Where are the real demos? Why the original repo doesn't have any demos?
I'm looking for a SMTP/POP examples, but in FPC/Lazarus
Remy Lebeau
@rlebeau
Sep 24 2018 01:05
@mdbs99 links to Indy demos are available at http://www.indyproject.org/Sockets/Demos/index.EN.aspx, but they are quite outdated, so they might need some tweaking to recompile. But asside from UI-related code, the actual Indy code should work the same in Delphi and FPC/Lazarus alike
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:09
Hey @rlebeau - yes, they are outdated and I can't open *.dfm in Lazarus because they are not text version, but binary
I believe the code works in both platforms however, I haven't use Indy 10 yet and I don't know the parameters to make things works - a simple demo would be better
Remy Lebeau
@rlebeau
Sep 24 2018 01:10
@mdbs99 DFMs are UI-related code. Indy doesn't provide UI demos for Lazarus, so you'll have to recreate the UIs in Lazarus as needed.
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:11

you'll have to recreate the UIs as needed

The *.dfm is unreadable because is binary, not text - impossible to recreate, if you don't have Delphi

Remy Lebeau
@rlebeau
Sep 24 2018 01:12
@mdbs99 There are 3rd party resource viewers, such as XN Resource Editor, that recognize Delphi DFM resources and display them in the proper text format
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:13
I don't know - I will search - but do you have a simple example using POP3 on Google accounts?
And about the SSL - I got the last file here https://indy.fulgan.com/SSL/
Is it still need it?
Remy Lebeau
@rlebeau
Sep 24 2018 01:15
@mdbs99 I've already posted up-to-date examples in various online forums showing how to connect to Gmail with Indy
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:16
I'm searching... but I got 2006... 2007... I believe the code in version 10 could be different
@rlebeau I would like to see a simple, but completed, demo that we know that works on Lazarus - if you can provide this example, I will appreciate very much
...if you have time, of course
Remy Lebeau
@rlebeau
Sep 24 2018 01:20
@mdbs99 I don't, actually. And even if I did, I can't provide Lazarus examples, as I don't have FPC/Lazarus. And I don't have access to the demos linked on Indy's website, so I can't update them with non-binary DFMs. All I can say is search around for demos, I assure you the info is out there. For instance, https://stackoverflow.com/a/51736944/65863 explains how to configure TIdPOP3 to connect to GMail. Once you are actually connected, not much has changed in POP3 over the years, so old demos should suffice.
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:21
Could be Delphi, but an update code that you know that will work on Lazarus too
@rlebeau Ok, it can help me, thanks
Ah, and about the SSL dlls, we still need it?
@mdbs99 yes, they are still needed
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:25
I've got the last file openssl-1.0.2p-x64_86-win64.zip- will it work with Indy 10?

@mdbs99 also see https://stackoverflow.com/questions/37265982/

Thanks, I will try this too

@mdbs99 yes, that file will work with Indy 10
Marcos Douglas B. Santos
@mdbs99
Sep 24 2018 01:29
All right - thanks again - even it was in 2012, seems that they are using Indy 10
@rlebeau sorry bother you with questions that I can search on the Internet - it's because there are some issues among libs that works in Delphi and Lazarus and I'm trying to cut corners cause my deadline - thank you