Search found 17 matches

by antonello.negrone
Thu Jun 03, 2021 3:36 pm
Forum: Welcome
Topic: Casting, dereferencing & C.
Replies: 3
Views: 3081

Casting, dereferencing & C.

Robert & Leonid, thank you, that does the trick!
by antonello.negrone
Thu Jun 03, 2021 12:55 pm
Forum: Welcome
Topic: Casting, dereferencing & C.
Replies: 3
Views: 3081

Casting, dereferencing & C.

<r>The following test lines of code in VO always return 5, instead in X# dont' work as expected:<br/>

<CODE><s>[code]</s><i>
</i>FUNCTION Start( ) AS VOID
LOCAL DIM p[4] AS BYTE

p[1] := 5
System.Console.WriteLine( AsString( DWORD(@p[1]))) //strange results
System.Console.WriteLine( Bin2DW ...
by antonello.negrone
Thu Jun 03, 2021 11:54 am
Forum: Welcome
Topic: Structures
Replies: 8
Views: 4535

Structures

Thanks for the advice Robert!

Since the const value is the same (2), the "bug" was never discovered and is very old :lol:
by antonello.negrone
Thu Jun 03, 2021 11:51 am
Forum: Welcome
Topic: Structures
Replies: 8
Views: 4535

Structures

Chris,

also this issue is fixed: the application was not declared in VO dialect.

Thanks
Antonello
by antonello.negrone
Wed Jun 02, 2021 9:23 pm
Forum: Welcome
Topic: Structures
Replies: 8
Views: 4535

Structures

<r>Chris, you are right (of course <E>:)</E> ) !<br/>
<br/>
Preparing a sample-code is a bit tricky for me now, but with some hint from you I think we can reach a the goal!<br/>
<br/>
And I found that the issue is a not-called WsaStartup() inside a <br/>

<CODE><s>[code]</s>PROCEDURE InitSpeClient ...
by antonello.negrone
Wed Jun 02, 2021 4:32 pm
Forum: Welcome
Topic: Structures
Replies: 8
Views: 4535

Structures

<r>Chris,<br/>
<br/>
declaring a local variable with a different name it works. Thanks!<br/>
<br/>
Now I reached a new stop when calling the WinAPI socket() func, which returns always INVALID_SOCKET:<br/>

<CODE><s>[code]</s>oSelf.oCSocket.handle := socket(PF_INET, SOCK_STREAM, 0)<e>[/code]</e ...
by antonello.negrone
Wed Jun 02, 2021 9:22 am
Forum: Welcome
Topic: Structures
Replies: 8
Views: 4535

Structures

<r>Hi,<br/>
I'm running a new try to convert S.P.E. from VO to X#.<br/>
I get successful compilation of the first DLL but it crashes at the very beginning of execution when allocating the connetion structure.<br/>
<br/>
Structures decl:
<CODE><s>[code]</s>VOSTRUCT SpeConnection
MEMBER __uServer AS ...