xBase++ and DLL-Function´s ... (R&R 9.0)

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Thomas_(Guest)
Posts: 10
Joined: Tue Oct 10, 2017 12:44 pm

xBase++ and DLL-Function´s ... (R&R 9.0)

Post by Thomas_(Guest) » Mon Sep 10, 2001 2:52 am

(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?__

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: xBase++ and DLL-Function´s ... (R&R 9.0)

Post by kfleming » Mon Sep 10, 2001 5:25 am

Does using a ? work?__Do you get the same error with any high and low scoping values?____Kathleen__R&R Support

Thomas_(Guest)
Posts: 10
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: xBase++ and DLL-Function´s ... (R&R 9.0)

Post by Thomas_(Guest) » Mon Sep 10, 2001 10:40 am

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__

Michael_Hoffmann_(Guest)
Posts: 22
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: xBase++ and DLL-Function´s ... (R&R 9.0)

Post by Michael_Hoffmann_(Guest) » Wed Sep 12, 2001 4:43 am

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.__

Post Reply