I have a major problem. I want to display a plot in a modeless dialogbox, using CVF. To do this, I use the Compaq Array Visualizer, and inserts it as a ActiveX object. The Module Wizard then creates a file with wrappers and stuff.
This works fine, I can display my plot, but the problem appears when I try to change the scale on the x-axis. I found a function in the Wizard-generated file :
LOGICAL*2 FUNCTION $DAvis2D_SetAxisScale($OBJECT, dim, data, $STATUS)
So I simply call this function from my program :
retlog = DlgGet(dlg, IDC_AVIS2DCTRL,havis,DLG_IDISPATCH)
call $DAvis2D_SetAxisScale(havis, 0, x_scalename, $STATUS = retint)
But the compiler gives me a warning :
Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external procedure. [$DAVIS2D_SETAXISSCALE]
How do I fix this? I am a very bad programmer, and I have looked all over for some example that I can use, but I can't find any. I really need som help on this one.
I guess the function with the $ should not be called directly. But I am not sure. I am really greatful for any kind of help.