CppDll.cpp
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 1k
Category:

Delphi VCL

Development Platform:

Delphi

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
  5. {
  6.     return 1;
  7. }
  8. //---------------------------------------------------------------------------
  9. extern "C" __declspec(dllexport)
  10. int WINAPI Double (int n)
  11. {
  12. return n * 2;
  13. }
  14. extern "C" __declspec(dllexport)
  15. int WINAPI Triple (int n)
  16. {
  17. return n * 3;
  18. }
  19. __declspec(dllexport)
  20. int WINAPI Add (int a, int b)
  21. {
  22. return (a + b);
  23. }