Marcus,
Quote:
> Hi, I'm trying to call a win32 API from VA.
> Can someone provide me a sample code of how i can do it in VA ?
> I tried using PlatformFunction in VA, but I couldn't get it to work.
I haven't tried any of the win32 API, but I have used the inline
external function call of VA on my own library, and it works as documented:
MyMandelbrotViewer>>testMandelbrotInclusionForRe: reFloat im: imFloat
limitLoopingBy: loopLim \n
"answers a 'confidence' measure that the point is in the set. i.e. if \n
the answered value = loopLim, then consider the point in the set. \n
" \n
<c: int32 'clsfun': ClsMandelbrotSet_testInclusion float float int32 > \n
^self primitiveFailed \n
(I've added "\n" markers for the end-of-lines because I have troubles
controlling
the line formatting with my news editor.)
This implementation comes from page 324 of the Programmer's Reference
(V3R0).
Hope this helps, and sorry if I'm off-track.
--cam