Inspection Details

ObsoleteCallingConvention


Summary
Warns about 'Declare' statements that are using the obsolete/unsupported 'CDecl' calling convention on Windows.
Reasoning
The CDecl calling convention is only implemented in VBA for Mac; if Rubberduck can see it (Rubberduck only runs on Windows), then the declaration is using an unsupported (no-op) calling convention on Windows.
The following code example(s) would trigger this inspection:

Private Declare Sub Beep CDecl Lib "kernel32" (dwFreq As Any, dwDuration As Any)

The following code example(s) would not trigger this inspection:

Private Declare Sub Beep Lib "kernel32" (dwFreq As Any, dwDuration As Any)


Back to List