Microsoft KB Archive/27772

{|
 * width="100%"|

Excel: Case Sensitivity and the DLL REGISTER Function

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, versions 2.x, 3.x, 4.0, 5.0

-

SUMMARY
The REGISTER function must be made with Pascal calling conventions, it is the compiler that changes the case of the procedure name, as in the following example:

  void         myfunction  -->  _myfunction void PASCAL myfunction  -->  MYFUNCTION

Therefore, the Pascal keyword in the compiler makes the change. However, Microsoft Excel will change all the arguments to the REGISTER function into uppercase text.