English
Forum

warning/Error Message at TCP-Program with XPSE .

 

funkheld
Hello, with XPSE comes these Error Message, if I TCP with winsocks.inc use:

[19:38:15] warning: undeklariert : 0X2
[19:38:15] Naehe: ~29, 'DEF %MSG_PEEK 0X2'
[19:38:15] XPSE:>
[19:38:31] Exitcode: -1073741510

Why the?
EXE won't prepares.

Thank you.
greeting
CompileMarkSeparation
 {$cleq}
Print "TEST TCP Senden"
 $I Winsocks.inc
Declare Data$,sockTCP&,IP$,a&,Ende%,Computername$,z&
GetComputerName
Computername$ = @$(0)
print Computername$
IP$ = "127.0.0.1"
print @&(0)
Print " 1) Taste c Drücken um eine Verbindung herzustellen"
Print " 2) Taste s x mal Drücken um Daten zu Senden"
Print " 3) Taste k Drücken um den Verbindungs Socket zu schliesen"

WhileNot Ende%

    waitinput
    locate 8,1
    print %key

    IF %key = 99' Taste c

        CreateSocketTcp'Stellt einen TCP Socket her
        sockTCP& = @&(0)
        print "Connect: "; @&(0)
        ConnectTcpTo 6969,IP$,sockTCP&'Port, IP , Socket Stellt eine Verbindung zum angegebenen IP her
        print "Connect: "; @&(0)

    ENDIF

    IF %key = 107' Taste k Kill Socket

        CloseSocketx sockTCP&
        print "Close: "; @&(0)

    ENDIF

    IF %key = 115' Taste s Kill Send Data

        Data$ = "TIME : "+ @Time$(0)+":"+ @Time$(1)+" Auf dem Rechner: "+Computername$
        sendTCP sockTCP&,Data$'Sock ,Daten Sendet Daten zur einer IP mit der der Socket verbunden wurde
        print "Send: "; @&(0)

    ENDIF

Wend

CloseWinsocks

11 kB
Hochgeladen:12/12/13
Downloadcounter59
Download
 
12/12/13  
 




E.T.
space in "%MSG_PEEK 0X2"  ??
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/12/13  
 




funkheld
Jup, thanks, now be I already a step moreover.

have now in the Winsocks.inc :
"Def %MSG_PEEK 0x02" in "Def %MSG_PEEK 2" changed.

at that FreeProfan32-Compilat comes a Message if I without XPSE compiliere and XPSE compiliere.

only with the Compilat under ProfanX11 with XPSE runs it now fehlerfrei.
means must Freeprofan32 anything wrong reinsetzen.

Perhaps white now of/ one a Solution, what there in the FreeProfan32 happens and the Error auslöst.

Thank you.
greeting

50 kB
Hochgeladen:12/13/13
Downloadcounter102
Download
11 kB
Hochgeladen:12/13/13
Downloadcounter65
Download
 
12/13/13  
 




funkheld
The Error comes with Send-Tcp and with receptions-Tcp:

receptions:
CompileMarkSeparation
 {$cleq}
Cls
Print "TEST TCP Empfang (Server)"
 $I Winsocks.inc
Declare Datainc$,sockTCP&,IP$,a&,Ende%,connecktsocket&,Endex&,IP_inc$,z&
USERMESSAGES 5000,5001
Init 2,2
print @&(0)
CreateSocketTcp
InitTCP @&(0),6969,5000,%hWnd'Initialisiert einen Socket der auf eingehende verbindungen wartet und bei einer verbindung
connecktsocket& = @&(0)'die definierte Message an das festgelegte Fenster Sendet
sockTCP& = 0
SETTIMER 100

WhileNot Ende%

    WAITINPUT
    Endex& = 0

    IF (%wmTimer = 1) or (%UMessage = 5001)

        Whilenot Endex&

            locate 10,1
            Print "Timer";&GetTickCount
            recfrom sockTCP&

            IF @&(0) = -1

                Endex& = 1

            ELSE

                Datainc$ = @$(0)
                print Datainc$
                print "Gesendet von IP:"
                getIP
                IP_inc$ = @$(0)
                print IP_inc$

            ENDIF

        Wend

    ENDIF

    IF %UMessage = 5000'Wird ausgeführt wenn eingehende verbindung die Message ausgelöst hatt

        'if sockTCP& = 0
        GetConnectSocket connecktsocket&'liefert den Socket zurück der die verbindung aufgenommen hat
        sockTCP& = @&(0)
        locate 8,1
        print "Connect to Socket: ";sockTCP&
        SocketToThreatTcp sockTCP&,%hWnd,5001'der Socket der die verbindung aufgenommen hat wird veranlast im hintergrund
        print @&(0)'auf eingehende Daten zu warten und bei eingehenden Daten die Definierte Message zu senden

    ENDIF

    IF %key = 99' Taste c

        cls

    ENDIF

wend

waitinput
CloseWinsocks

Send:
CompileMarkSeparation
 {$cleq}
Print "TEST TCP Senden"
 $I Winsocks.inc
Declare Data$,sockTCP&,IP$,a&,end%,Computername$,z&
GetComputerName
Computername$ = @$(0)
print Computername$
IP$ = "127.0.0.1"
print @&(0)
Print " 1) Button c pressing circa a link herzustellen"
Print " 2) Button s x time pressing circa data To Senden"
Print " 3) Button k pressing around the Verbindungs Socket To schliesen"

WhileNot end%

    waitinput
    locate 8,1
    print %key

    IF %key = 99' Button c

        CreateSocketTcp'position a TCP Socket since
        sockTCP& = @&(0)
        print "Connect: "; @&(0)
        ConnectTcpTo 6969,IP$,sockTCP&'Port, IP , Socket position a link to that angegebenen IP since
        print "Connect: "; @&(0)

    ENDIF

    IF %key = 107' Button k Kill Socket

        CloseSocketx sockTCP&
        print "Close: "; @&(0)

    ENDIF

    IF %key = 115' Button s Kill Send Data

        Data$ = "TIME : "+ @time$(0)+":"+ @time$(1)+" on the computer: "+Computername$
        sendTCP sockTCP&,Data$'Sock ,data sends data to of/ one IP with the the Socket joined watts
        print "Send: "; @&(0)

    ENDIF

Wend

CloseWinsocks

11 kB
Hochgeladen:12/13/13
Downloadcounter64
Download
 
12/13/13  
 



Hi!

XPSE is since Profan² 4.5 Profan ²/ XProfan-Präkompilierer: [...] 

FreeProfan isn't XProfan.

additionally, if you XPSE launch then can You on the first number its version number discern, for which XProfan-Version it manufactured is. XPSE is in current Version for XProfan 11, not for XProfan 12 and not for FreeProfan. try, XPSE for XProfan 12 and/ or FreeProfan produce hit[ed] yet fehl.
 
07/10/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.122 Views

Untitledvor 0 min.
Erasmus.Herold03/13/16
Georg Teles09/09/15
Nico Madysa12/18/14
Pedro Miguel10/04/14
More...

Themeninformationen

this Topic has 3 subscriber:

funkheld (3x)
iF (1x)
E.T. (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie