Hi Dan,
You might see the MessageBox.c example:
It includes a Yes and No button. Using MB_OKCANCEL that includes OK and Cancel might be more appropriate. See KMotionDef.h for other options.Code:#include "KMotionDef.h" #define TMP 10 // which spare persist to use to transfer data #include "KflopToKMotionCNCFunctions.c" main() { int Answer; Answer = MsgBox("Hello World",MB_YESNO|MB_ICONEXCLAMATION); if (Answer == IDYES) printf("Answer is Yes\n"); else printf("Answer is No\n"); }
Regards