C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C4261
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4261
 
     no override, 'class1::function1' has 'model' calling convention
     whereas 'class2::function2' has 'model' calling convention
 
     The specified functions had different calling conventions.
 
     The Microsoft calling convention specifiers are used for
     disambiguation between overloaded functions.
 
     The virtual mechanism will not be invoked for functions with
     differing calling conventions.
 
     The following example causes this warning:
          struct X
          {
             virtual void __near func();
          };
 
          struct Y : X
          {
             void __far func();  // warning
          };
                                    -♦-