ITEM: Q0986L
UxSetSubprocClosure causes AIC compile error in ANSI mode.
Question:
Env: AIC 1.2
Desc: When using the statement:
UxSetSubprocClosure(handle, UxGetWidget(widgetX));
The statement compiles fine when using K&R code but when
using ANSI mode receive a compiler error of:
Function all argument cannot be assigned to
corresponding parameter.
How do you compile the instruction when using K&R
compile mode?
Answer:
Desc: When compiling in ANSI C, the second parameters must be of
type char*. Since UxWidget returns a XtWidget type it must
be retyped. When compiling in ANSI C, use the following
instruction:
UxSetSubprocClosure(handle, (char *)UxGetWidget(widgetx));
Support Line: UxSetSubprocClosure causes AIC compile error in ANSI mode. ITEM: Q0986L
Dated: December 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:37
Comments or suggestions?
Contact us