-2

私は 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この関数を呼び出そうとすると、未定義の関数を呼び出します。

この問題を解決するための助けをお願いできますか?

4

1 に答える 1