Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.02 KB

compiler-error-c3763.md

File metadata and controls

45 lines (37 loc) · 1.02 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3763
Compiler Error C3763
11/04/2016
C3763
C3763
58b1f079-cd1d-46e0-9431-ea18210106b7

Compiler Error C3763

'type': 'retval' and 'out' can only appear on a data-pointer type

The out or retval attributes can only appear on parameters of type pointer. Either remove the attribute or make the parameter of type pointer.

The following sample generates C3763:

// C3763.cpp
#define _ATL_ATTRIBUTES 1
#include <atlbase.h>
#include <atlplus.h>
#include <atlcom.h>

[ module(name=test) ];

[ dispinterface, uuid("00000000-0000-0000-0000-000000000001") ]
__interface IF84 : IDispatch
{
   [id(0x00000002)]HRESULT m2([out]unsigned char);
};

[ coclass, uuid("00000000-0000-0000-0000-000000000002") ]
class CF84 : public IF84
{   // C3763
public:
   HRESULT __stdcall m2(unsigned char i)
   {
      return S_OK;
   }
};

int main()
{
}