我正在使用 C++ Builder,并且在为某些表单操作创建函数后得到了一些帮助。我已经尝试了下面的代码,但没有运气。
这是我的代码:
int calculateAndDisplayImportantAppointments()
{
int integerNumberOfImportantAppointments = calCalendar.getNumberOfImportantAppointments();
if (integerNumberOfImportantAppointments > 0)
{
// itoa is not standard (like any of this is)
WCHAR strN[32];
swprintf(strN, L"%d", integerNumberOfImportantAppointments);
// not familiar with ShowMessage(), but I *think* this will work.
ShowMessage("You have " + UnicodeString(strN) + " important appointments. Do you wish to view them?");
}
return integerNumberOfImportantAppointments;
}
我收到以下错误:calculateAndDisplayImportantAppointments
尝试调用此函数时调用未定义的函数。
我可以帮忙解决这个问题吗?