Hi Mike,
Your declaration looks good, at least I produced very similar one:
DECLARE INTEGER ExtEscape IN gdi32;
INTEGER hdc, INTEGER nEscape, INTEGER cbInput,;
STRING @lpszInData, INTEGER cbOutput, STRING @lpszOutData
DECLARE INTEGER ExtEscape IN gdi32;
INTEGER hdc, INTEGER nEscape, INTEGER cbInput,;
INTEGER lpszInData, INTEGER cbOutput, INTEGER lpszOutData
(1) or (2) is defined by the way you allocate input and output buffers.
Those buffers might create a problem. I would check if there is enough space allocated for both. Sometimes such buffers also require first member containing size of the buffer etc.
May be provide more details, then I could be more specific.
* * *
I have an example of how to use
Escape function:
Printing text with the Escape functionhttp://www.news2news.com/vfp/?example=357&function=543