2 Replies Latest reply on Jan 8, 2020 6:08 PM by sreeharikg

    Oracle Hospitality RES Micros 3700 DLL ISL interface

    sreeharikg

      Dear Team,

       

      Can you help me on loading DLL on Micros RES 3700 ?

       

      Here are what i tried. None of them worked.

       

      ISL :

       

      Event Inq : 2

      infomessage "Inside event"

      var mydll:N12

      DLLLoad mydll, "test.dll"

      infomessage "sre2ddde"

      infomessage mydll

      DLLCall_CDECL mydll, sum()

      infomessage mydll

      EndEvent

       

       

      C# DLL :  ( .Net Framework 3.5 ) This DLL is loading fine. I am getting memory address on DLLLoad instead of 0 in ISL.

       

      class Test

      {

          [DllExport("sum", CallingConvention = CallingConvention.Cdecl)]

          public static void sum()

          {

              int a = 5 + 4;

              MessageBox.Show("Test");

          }

      }

       

       

      C++ DLL : (ISO C++17 Standard (std:c++17)) This DLL is not loading. I am getting 0 on DLLLoad in ISL

       

      math.h

       

      #ifdef MATHLIBRARY_EXPORTS

      #define MATHLIBRARY_API __declspec(dllexport)

      #else

      #define MATHLIBRARY_API __declspec(dllimport)

      #endif

      extern "C" MATHLIBRARY_API void sum();

      ------------------------------------------------------------------------------

      math.cpp

       

      #include <Windows.h>

      #include "MathLibrary.h"

      void sum()

      {

      MessageBox(0,"SUM ");

      }