Page 1 of 1
xBase++ and DLL-Function´s ... (R&R 9.0)
Posted: Mon Sep 10, 2001 2:52 am
by Thomas_(Guest)
(R&R 9.0 xBase Edition)____I have some problems to use the DLL-Functions with xBase++.__It´s no problem until i use the "setScopeUsage( nJob, "O")" Function. (it´s the letter "O"!)__I set the scope´s value with "setLowScope( nJob, "A")" and __"setHighScope( nJob, "M")".__The report get the error "invalid scope type"____What can i do?__I want to control the runtime without an extra file.__Can somebody help me?__
=> RE: xBase++ and DLL-Function´s ... (R&R 9.0)
Posted: Mon Sep 10, 2001 5:25 am
by kfleming
Does using a ? work?__Do you get the same error with any high and low scoping values?____Kathleen__R&R Support
==> RE: xBase++ and DLL-Function´s ... (R&R 9.0)
Posted: Mon Sep 10, 2001 10:40 am
by Thomas_(Guest)
Hello Kathleen,____"?" does not work.____The error value changes with every call. (Error: "invalid scope__type" in the "rrwrun.out"-file)__I did not change the code. The error value is an ACSII-character.__When i leave out the function "setScopeUsage" it works fine.______Here is a little bit code:____nJob := chooseReport( "Prg", 0, 0, cReport, len(cReport))__if nJob = 0__ alert("Error")__endif____setOutputDest( nJob, "D")__setDataDir( nJob, cDataPath)____setWinTitle( nJob, "Title")__setWinLeft( nJob, 100)__setWinTop( nJob, 100)__setWinWidth( nJob, 560)__setWinHeight( nJob, 400)____//--------------------------------------------------__// I get the same error when i use the parameter "O"__//--------------------------------------------------__if setScopeUsage( nJob, "?") = 0__ alert("Error with Usage")__endif______if setLowScope( nJob, "A") = 0__ alert("error: low")__endif____if setHighScope( nJob, "K") = 0__ alert("error: high")__endif______nResult := execRuntime( nJob, 0, SW_SHOW, @nErrCode, ;__ @nPage, @cErrMsg, len(cErrMsg))______Thank for help!__Thomas__
=> RE: xBase++ and DLL-Function´s ... (R&R 9.0)
Posted: Wed Sep 12, 2001 4:43 am
by Michael_Hoffmann_(Guest)
Hi Thomas,____why don^t you want to use the RRUNIN.DBF approach? I^d bet that the DLL stuff does nothing but create the RRUNIN and then call the runtime module. If you^re interested, you can have my routines for calling R&R DOS and R&R Windows from within your Xbase++ application! These routines handle all the RRUNIN and RRUNOUT files. If your^re interested, drop me an eline to m.hoffmann@compar.cc.____Michael.__