I need some assistance in calling a C++ lib that has a function that accepts a variable number of arguments (this call worked about 6 years ago with the Watcom compiler).
The function in the C++ lib is declared as:
struct resbuf *acutBuildList (int rtype, ...);
and my interface in a mod file is as such:
function acutbuildlist ( ) integer*4 acutbuildlist !DEC$ ATTRIBUTES C,varying, ALIAS : '_acutBuildList' :: acutbuildlist end function
and my call to the function in the application is:
pt(1) =0.0;pt(2)=0.0;pt(3)=0.0 iads = acutBuildlist(rtdxf0,'CIRCLE',10,pt,40,1.0,0)
However, the call causes an AV.
Bill D. Richards
North Idaho College