How can trying to build a COM in Visual studio2015 with the following code.
MIDL: error MIDL2337: unsatisfied forward declaration: _Bool
Error of me will fail out.
import "oaidl.idl";
import "ocidl.idl";
#include <stdbool.h>
#include <time.h>
[uuid("B60DAB85-864C-4C5F-82BF-414AE59B1F1F"), object]
interface ISampleCOM : IUnknown
{
[propget,
helpstring("Get NowTime.")] HRESULT GetNowTime(
[out, retval] time_t* ReturnVal);
}
[uuid("F2544169-985E-4F49-99AD-D51D8C93F5C4")]
coclass SampleCOM
{
interface ISampleCOM;
}
Do you have any good workaround?