I've looked carefully at the files within TRMchartX.zip from _ and Stefan, and unless I'm missing something, I don't see any C wrappers included for RMChart.dll. This set of files appears to be focused on a TRMChartX class in its TRMChartX.prg, which seems to only access the ActiveX capabilities of RMChart and Harbour -not the dll implementation. Of course, for many, the ActiveX route may be the best way to go.
But if one wants to use RMChart.dll, the approach that Im working on with DLL32 may be appropriate. Anyway, it's working here - though some additional cleanup is still needed with the functions that have arrays as parameters. Hope to have that finished tonight.
- Roger
to Stefan Haupt RMCHART
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
It seems someone else using xHarbour (but not FWH) also had the problem passing arrays to the RMchart.dll functions - the problem I'm wrestling with - and he found a solution. However, I can't seem to get his solution to work in FWH. Can someone show me how?
Here's an exerpt of the discussion from the Rmchart forum...
*------------
I have a problem with RM_ADDBARSERIES .... I can't get the data array in ??? - ChrisG
aData := { 10.0, 20.0, 30.0, 40.0, 50.0 } // define my array of data
nResult := DLLCall( ;
hDll, ; // DLL to call
DC_CALL_STD, ; // calling convention
"RMC_ADDBARSERIES", ; // the function to call
nCtrlId, ;
1, ; //region
aData, ;
5, ; // length of data
0,0,0,0,0,0,0,0,0 )
I have tried it with aData, aData[1]
*------------
(LATER, HIS SOLUTION...)
A clever person on the xHarbour NG has given me some code that allowed me to do this...
typedef struct { DOUBLE nDouble[5] } MyStructure
PROCEDURE MakeData
LOCAL o IS MyStructure
o:nDouble[1] := 1.0
o:nDouble[2] := 2.0
o:nDouble[3] := 3.0
o:nDouble[4] := 4.0
o:nDouble[5] := 5.0
RETURN( o )
#pragma ENDDUMP
I then pass o[1] into the Rmchart function .... and all works 100%.
*------------------------------------------
(Me again...)
I've tried, but haven't quite been able to implement this solution in FWH.
Any suggestions? (Come on Enrico - throw me a life preserver. You're so good at it!)
- Roger
Here's an exerpt of the discussion from the Rmchart forum...
*------------
I have a problem with RM_ADDBARSERIES .... I can't get the data array in ??? - ChrisG
aData := { 10.0, 20.0, 30.0, 40.0, 50.0 } // define my array of data
nResult := DLLCall( ;
hDll, ; // DLL to call
DC_CALL_STD, ; // calling convention
"RMC_ADDBARSERIES", ; // the function to call
nCtrlId, ;
1, ; //region
aData, ;
5, ; // length of data
0,0,0,0,0,0,0,0,0 )
I have tried it with aData, aData[1]
*------------
(LATER, HIS SOLUTION...)
A clever person on the xHarbour NG has given me some code that allowed me to do this...
typedef struct { DOUBLE nDouble[5] } MyStructure
PROCEDURE MakeData
LOCAL o IS MyStructure
o:nDouble[1] := 1.0
o:nDouble[2] := 2.0
o:nDouble[3] := 3.0
o:nDouble[4] := 4.0
o:nDouble[5] := 5.0
RETURN( o )
#pragma ENDDUMP
I then pass o[1] into the Rmchart function .... and all works 100%.
*------------------------------------------
(Me again...)
I've tried, but haven't quite been able to implement this solution in FWH.
Any suggestions? (Come on Enrico - throw me a life preserver. You're so good at it!)
- Roger
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Dear Stefan,
Yes, please.
Regards,
Dutch
dutchez4@gmail.com
dutch@easyfo.com
Yes, please.
Regards,
Dutch
dutchez4@gmail.com
dutch@easyfo.com
StefanHaupt wrote:Hi Dutch,
Please see my last post to Roger, I only have the sample which is included in the TRmChartX class.dutch wrote:Dear Stefan,
Could you give an example for How to use RMCHART.DLL wrapper (FWH code)? How to set the figures for graph?
Dutch
Did you have the wrapper using ocx ? I can sent you the archiv file if you want.
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany