In the MS Word report example, wordrpt.prj, a command-by-command error-checking function is used. Example:
RptChk (WordRpt_ApplicationNew (VTRUE, &appHandle));
RptChk is defined as a macro:
#define RptChk(f) if (error = (f), FAILED(error)) { ReportActiveXError (); goto Error; } else
When I run the example project, wordrpt.prj, all is well. When I try running the exact same code from within my program, I get the error "Missing prototype" for each instance of RptChk(). I have included the macro in my program. I am using LabWindows/CVI v7.1. Any ideas?
Steve