Recent

Author Topic: indy version  (Read 10092 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 939
indy version
« on: September 17, 2014, 01:08:37 pm »
Which indy version is compatible with winCE?
I created a small application to read a html page with TidHTTP but got error:

Quote
C:\lazarus\Indy10\Lib\Lazarus\IdGlobal.pas(4945,43) Error: Identifier not found "GetWindowsDirectory"

I can use compiler directive WINCE, but still got errors from pchar which use to be pwidechar for winCE.

I installed 10.56x in indy
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

rvk

  • Hero Member
  • *****
  • Posts: 3835
Re: indy version
« Reply #1 on: September 17, 2014, 01:56:43 pm »
Version 10.56x ?? (where did you get that?)
If i look at the indyproject pages i can see 2 versions for the website:
http://www.indyproject.org/Sockets/fpc/index.en.html (with indy-10.2.0.1.zip)
http://www.indyproject.org/Sockets/fpc/index.EN.aspx (with indy-10.2.0.3.zip)
(really weird why they have 2 websites like that)
But WinCE should be supported.

Of i download the SVN via http://www.indyproject.org/Sockets/Download/svn.EN.aspx
and look in trunk/lib/system/idGlobal.pas i see:

Code: [Select]
  {$IFDEF WINDOWS}
    {$IFNDEF WINCE}
  SetLength(sLocation, MAX_PATH);
  SetLength(sLocation, GetWindowsDirectory(
...
  // GetWindowsDirectory() does not exist in WinCE, and there is no system folder, either
  sLocation := '\Windows\'; {do not localize}
...
So according to that WinCE should be supported.

Do you have similar code in your idGlobal.pas?

indy-10.2.0.1.zip and indy-10.2.0.3 do not have this WINCE define.
Indy 10.5.8 doesn't either. But Indy 10.6.0 does have the define.
And, as said earlier, trunk does too. So i guess you need a newer version.


marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7430
Re: indy version
« Reply #2 on: September 17, 2014, 08:40:06 pm »
I ran a handful of clients (of indy10) on wince a while back, but afaik there is no such thing as a supported version.

Rick, you need to get daily zips from fulgan

rvk

  • Hero Member
  • *****
  • Posts: 3835
Re: indy version
« Reply #3 on: September 17, 2014, 10:37:14 pm »
Rik   :), you need to get daily zips from fulgan
Why?

Is there a difference between the trunk found in the link i gave:
https://svn.atozed.com:444/svn/Indy10/trunk
and the one on http://indy.fulgan.com/ZIP/ ??
They are the same version. (both revision 5187 at this moment)

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: indy version
« Reply #4 on: September 18, 2014, 01:20:58 am »
AFAIK, the "official" link for the public releases of the current versions of Indy (mainly maintained by Remy Lebeau) is:

http://indy.fulgan.com/ZIP/

Just in case, there is also an Indy forum (if you don't already know it):

http://forums2.atozed.com/

mangakissa

  • Hero Member
  • *****
  • Posts: 939
Re: indy version
« Reply #5 on: September 18, 2014, 09:00:00 am »
I tried to use the latest zip from http://indy.fulgan.com/ZIP but my zip extractor says the file is corrupt and can not be extracted. Therefore used an earlier version.

So if someone has a correct zipfile ........  ;D
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

rvk

  • Hero Member
  • *****
  • Posts: 3835
Re: indy version
« Reply #6 on: September 18, 2014, 09:18:33 am »
but my zip extractor says the file is corrupt and can not be extracted.
Did you try the new version from last night?
http://indy.fulgan.com/ZIP/Indy10_5187.zip (from Thursday, September 18, 2014  3:31 AM)
My unzipper of choice (7zip) has no problems unzipping that one.

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: indy version
« Reply #7 on: September 18, 2014, 10:13:58 am »
A new zip file is build each night (even if there are no modifications). I've never heard about troubles with these files, and I've never got some in the past.

As for rvk, the current file is OK for me (both with the Microsoft build-in zip tool coming with the Explorer, or with Winrar).  Make another try, possibly without using any download tool or plugin.

rvk

  • Hero Member
  • *****
  • Posts: 3835
Re: indy version
« Reply #8 on: September 18, 2014, 10:28:40 am »
As for rvk...
It wasn't me who had trouble with the zip.
I mainly use Synapse. But mangakissa (who had the corrupt download) needs it for WinCE and as far as i know Synapse doesn't work with WinCE (out of the box without modification).
I'm sure he'll find that the latest zip will work with no problems (and at least the error message about GetWindowsDirectory should be resolved).

mangakissa

  • Hero Member
  • *****
  • Posts: 939
Re: indy version
« Reply #9 on: September 18, 2014, 11:19:19 am »
This one is working. I'll try again.
Lazarus 1.84 (32b) / FPC 3.0.4
Windows 10

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: indy version
« Reply #10 on: September 18, 2014, 11:50:29 am »
It wasn't me who had trouble with the zip.

I think there has been a misunderstanding. I've perfectly understand what you meant.

When I've written "As for rvk, the file is ok for me", I meant:

"The zip file is OK for me, as for rvk, for which this file is also OK (i.e. it's OK for both of us)."

rvk

  • Hero Member
  • *****
  • Posts: 3835
Re: indy version
« Reply #11 on: September 18, 2014, 12:06:15 pm »
I think there has been a misunderstanding. I've perfectly understand what you meant.
Yep, that's what i get for reading one language and thinking in another :)
I read "As for" as in case (with regard to), not "As for" as in similarity.
Haaaa, English grammar  :D

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: indy version
« Reply #12 on: September 18, 2014, 01:51:46 pm »
@rvk:
It's OK. English is not my native language, too.
**Edit** After a few verifications, you are quite right and I was wrong. I've incorrectly interpreted the 'As for...' expression. Sorry.

@mangakissa:
It seems the bug you're talking about in your first post has been fixed recently. See swierzbicki's post and Remy Lebeau's answer in the Indy forum:

http://forums2.atozed.com/viewtopic.php?f=7&t=26575&start=19

So, I guess the current version of Indy should be OK now.
« Last Edit: September 18, 2014, 02:50:06 pm by ChrisF »