//--------------------------------------------------------------------------- #ifndef ufrmMainH #define ufrmMainH //--------------------------------------------------------------------------- #include #include #include #include #include "uIFormShow.hpp" #define INTF_IMP_REFCOUNT(BASE) \ ULONG __stdcall AddRef() { return BASE::_AddRef();} \ ULONG __stdcall Release(){ return BASE::_Release();} //--------------------------------------------------------------------------- class TForm1 : public TForm, IShowAsNormal, IShowAsModal { __published: // IDE-managed Components TEdit *Edit1; TMemo *Memo1; private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); int __stdcall showAsModal(void); void __stdcall showAsNormal(void); INTF_IMP_REFCOUNT(TForm); // ULONG __stdcall AddRef() // { // return TForm::_AddRef(); // } // // ULONG __stdcall Release() // { // return TForm::_Release(); // } }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif