Guest
Hello !!
I have a small question regarding ipcBeginProcess.
My code is below: (actually, it's Andrew-san's code ^^)
procedure(Main()
cv = geGetWindowRep()
Com = "calibre ... options ... "
CalibreId = ipcBeginProcess(
Com
""
'DataHandler
'DataHandler
'ExitProc
) ;; end ipcBeginProcess
) ;; end Main
-----------------------------------------------------
procedure(DataHandler(CalibreId data)
printf("%s" data) )
-----------------------------------------------------
procedure(ExitProc(CalibreId status)
println("calibre has finished")
if(cv~>mode == "r" then
println("read only")
else println("write")
)
) ;; end ExitProc
My problem is that my program displays "calibre has finished", but
never do the if test.
Maybe because parameter cv in not defined ?
So i would like to know how to define parameter cv in my procedure
ExitProc.
i tried
procedure(ExitProc(CalibreId status cv)
but no changes.
I think this is not the good way, but i don't know how to. Is there
something to define in
ipcBeginProcess, to say to pass cv as argument for ExitProc ?
thanks a lot for your help.
Regards,
b.
I have a small question regarding ipcBeginProcess.
My code is below: (actually, it's Andrew-san's code ^^)
procedure(Main()
cv = geGetWindowRep()
Com = "calibre ... options ... "
CalibreId = ipcBeginProcess(
Com
""
'DataHandler
'DataHandler
'ExitProc
) ;; end ipcBeginProcess
) ;; end Main
-----------------------------------------------------
procedure(DataHandler(CalibreId data)
printf("%s" data) )
-----------------------------------------------------
procedure(ExitProc(CalibreId status)
println("calibre has finished")
if(cv~>mode == "r" then
println("read only")
else println("write")
)
) ;; end ExitProc
My problem is that my program displays "calibre has finished", but
never do the if test.
Maybe because parameter cv in not defined ?
So i would like to know how to define parameter cv in my procedure
ExitProc.
i tried
procedure(ExitProc(CalibreId status cv)
but no changes.
I think this is not the good way, but i don't know how to. Is there
something to define in
ipcBeginProcess, to say to pass cv as argument for ExitProc ?
thanks a lot for your help.
Regards,
b.