Compiler Error C3368
'function declaration' : invalid calling convention for IDL
You can only use the __stdcall or __cdecl calling conventions in an .idl file.
The following sample generates C3368:
// C3368.cpp
// processor: x86
[idl_module(name="Name", dllname="Some.dll")];
[idl_module(name="Name")]
int __fastcall f1(); // C3368
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for