English
Forum

Examples

 

Klemens
Funke
Hello Profaner

I need one simple Programmierbeispiel How I through PIPE.PCU
data between two or three Profanprogrammen replace can.
The Datenaustausch ought to in both directions possible his
unfortunately runs the Beispielprogramm from the Download not on my computer.
(WIN XP 1,8Ghz/AMD)

Since I with the PreCompiler XPE not at all intimate be ,ought to the program
with XProfan run his

Greeting

Klemens
 
08/14/06  
 




CompileMarkSeparation
server
DECLARE H&,A&
 $U PIPE.PCU=PIPE.
 $U THREAD.PCU=THREAD.
DECIMALS 0
A&=0
H&=PIPE.CREATE("test")

IF (H&)

    WINDOWSTYLE ( 512 | 8 )
    CLS
    THREAD.START 1

    WHILENOT %KEY=2

        WAITINPUT

    WEND

    THREAD.STOP 1

ELSE

    ERRORING "Problem during pipecreating"

ENDIF

END

PROC ERRORING

    PARAMETERS S$
    MESSAGEBOX S$,"",4096

ENDPROC

PROC THREAD.DO

    PARAMETERS N&

    IF N&=1

        IFNOT PIPE.STACK(H&)

            PIPE.PUSH H&,"shake|"+STR$(A&)
            INC A&
            SETTEXT %HWND,"shake "+STR$(A&)

        ENDIF

    ENDIF

ENDPROC


CompileMarkSeparation
client
DECLARE H&,A&
 $u PIPE.PCU=PIPE.
 $u THREAD.PCU=THREAD.
H&=PIPE.OPEN("test")
A&=0

IF (H&)

    WINDOWSTYLE ( 512 | 8 )
    CLS
    THREAD.START 1

    WHILENOT %KEY=2

        WAITINPUT

    WEND

    THREAD.STOP 1

ELSE

    ERRORING "Pipe hardship found."

ENDIF

END

PROC ERRORING

    PARAMETERS s$
    MESSAGEBOX s$,"",4096

ENDPROC

PROC THREAD.DO

    PARAMETERS N&

    IF N&=1

        IF PIPE.STACK(H&)

            SETTEXT %HWND,"Hand "+STR$(A&)+" "+PIPE.POP(H&)
            INC A&

        ELSE

            SETTEXT %HWND,STR$(&GETTICKCOUNT)

        ENDIF

    ENDIF

ENDPROC

 
08/15/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.116 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
Klemens Funke (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