自定义消息运行时报错?
自定义消息报错?
随便在哪个窗体类中加入
class TForm1 : public TForm
{
__published:// IDE-managed Components
private:// User declarations
public:// User declarations
__fastcall TForm1(TComponent* Owner);
BEGIN_MESSAGE_MAP
//MESSAGE_HANDLER(WM_MESSAGE_PRINT_FINISHED, TMessage, OnPrintFinished)
END_MESSAGE_MAP(TForm1)
};
程序什么都不做,编译没问题,运行时报错:Project Project1.exe raised exception class EStackOverflow with message 'Stack overflow'. Process stopped. Use Step or Run to continue.
为什么?
[解决办法]
END_MESSAGE_MAP(TForm1)
接分吧