नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type': is not a valid Automation type
Remarks
An invalid type was specified.
Example
The following example generates C3508:
// C3508.cpp
#define _ATL_DEBUG_QI
#define WIN32_LEAN_AND_MEAN
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#define _ATL_ATTRIBUTES 1
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
#include <atlctl.h>
#include <atlstr.h>
extern "C" int printf_s(const char*, ...);
[module(name=oso)];
union U
// try the following two lines instead
// [export]
// struct U
{
int i, j;
};
[dispinterface]
__interface I
{
[id(1)] HRESULT func(U* u);
};
[coclass]
struct C : I
{
HRESULT func(U*) // C3508
{
return E_FAIL;
}
};
int main()
{
}