One more thing... "While Not Eof(hFile)" doesn't work with this case.
Eof() never finds end of "file".
Almost sleeping already...
Jussi
On Sat, Sep 19, 2009 at 02:33, Jussi Lahtinen wrote:
> OK, now it works! Thanks!
> That makes my code more simple than it was, very good!
> Only one little d
OK, now it works! Thanks!
That makes my code more simple than it was, very good!
Only one little disruptive thing... using "File" is little counter
intuitive, but maybe I just don't name it "hFile",
maybe instead "hMyData" or like.
Must go to sleep...
Jussi
2009/9/19 Benoît Minisini :
>> This c
> This code, gives error message "wanted Stream got Long instead":
>
> pPOINTS = Alloc(4, 1522)
> tmp = CalculatePoints(pPOINTS,matrix.Data)
>
>
>
> For ii = 0 To tmp
> tmpPOINT = New POINT
> Read #pPOINTS + (ii * 4), tmpPOINT.x< Fails here!
> Read #pPOINTS + (ii * 4) + 2, tmpPO
I forgot to mention that CalculatePoints is external function.
Jussi
On Sat, Sep 19, 2009 at 00:08, Jussi Lahtinen wrote:
> This code, gives error message "wanted Stream got Long instead":
>
> pPOINTS = Alloc(4, 1522)
> tmp = CalculatePoints(pPOINTS,matrix.Data)
>
>
>
> For ii = 0 To tmp
This code, gives error message "wanted Stream got Long instead":
pPOINTS = Alloc(4, 1522)
tmp = CalculatePoints(pPOINTS,matrix.Data)
For ii = 0 To tmp
tmpPOINT = New POINT
Read #pPOINTS + (ii * 4), tmpPOINT.x< Fails here!
Read #pPOINTS + (ii * 4) + 2, tmpPOINT.y
...
POINT clas