From 97bf5de1335074569d612c10cb39cc83ee0fdfcc Mon Sep 17 00:00:00 2001 From: amai2012 Date: Tue, 8 Jan 2019 21:15:04 +0100 Subject: [PATCH] Add more Windows (Microsoft) macros and a few lines of related test code --- cfg/windows.cfg | 6 ++++-- test/cfg/windows.cpp | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/cfg/windows.cfg b/cfg/windows.cfg index f0950ac65..7dd14639a 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -5540,14 +5540,16 @@ HFONT CreateFont( + - - + + + diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index b9134f63e..3dd969373 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -858,3 +858,14 @@ error_t nullPointer__strncpy_s_l(char *strDest, size_t numberOfElements, const c // no warning shall be shown for return _strncpy_s_l(strDest, numberOfElements, strSource, count, locale); } + +class MyClass :public CObject { + DECLARE_DYNAMIC(MyClass) + DECLARE_DYNCREATE(MyClass) + DECLARE_SERIAL(MyClass) +public: + MyClass() {} +}; +IMPLEMENT_DYNAMIC(MyClass, CObject) +IMPLEMENT_DYNCREATE(MyClass, CObject) +IMPLEMENT_SERIAL(MyClass,CObject, 42)