Esempio n. 1
0
 public static double GetNValue(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetNValue(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetNValue(cursor));
     }
 }
Esempio n. 2
0
 public static int MdsXMLRequestUTF8String(int clientHandle, int cursor, string xmlIn, out IntPtr result, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsXMLRequestUTF8String(clientHandle, cursor, xmlIn, out result, error));
     }
     else
     {
         return(OlapNativeImports32.MdsXMLRequestUTF8String(clientHandle, cursor, xmlIn, out result, error));
     }
 }
Esempio n. 3
0
 private static IntPtr GetSubsetRefNameW(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetSubsetRefNameW(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetSubsetRefNameW(cursor));
     }
 }
Esempio n. 4
0
 public static int MdsServerCountEx(int clientHandle, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsServerCountEx(clientHandle, error));
     }
     else
     {
         return(OlapNativeImports32.MdsServerCountEx(clientHandle, error));
     }
 }
Esempio n. 5
0
 public static int MdsServerNameExW(int clientHandle, ref OlapNativeServerInformation serverInfo, int id, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsServerNameExW(clientHandle, ref serverInfo, id, error));
     }
     else
     {
         return(OlapNativeImports32.MdsServerNameExW(clientHandle, ref serverInfo, id, error));
     }
 }
Esempio n. 6
0
 public static int MdsConnect(string userName, int userType, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsConnect(userName, userType, error));
     }
     else
     {
         return(OlapNativeImports32.MdsConnect(userName, userType, error));
     }
 }
Esempio n. 7
0
 public static int MdsConnectServerWinW(int clientHandle, string servername, int terminalID, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsConnectServerWinW(clientHandle, servername, terminalID, error));
     }
     else
     {
         return(OlapNativeImports32.MdsConnectServerWinW(clientHandle, servername, terminalID, error));
     }
 }
Esempio n. 8
0
 public static void SetDecimalPlaces(int cursor, int places)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetDecimalPlaces(cursor, places);
     }
     else
     {
         OlapNativeImports32.SetDecimalPlaces(cursor, places);
     }
 }
Esempio n. 9
0
 public static void SetTableId(int cursor, int tableId)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetTableId(cursor, tableId);
     }
     else
     {
         OlapNativeImports32.SetTableId(cursor, tableId);
     }
 }
Esempio n. 10
0
 public static void SetRightCondition(int cursor, int rightOperator, double rightValue)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetRightCondition(cursor, rightOperator, rightValue);
     }
     else
     {
         OlapNativeImports32.SetRightCondition(cursor, rightOperator, rightValue);
     }
 }
Esempio n. 11
0
 public static void SetSize(int cursor, int size)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSize(cursor, size);
     }
     else
     {
         OlapNativeImports32.SetSize(cursor, size);
     }
 }
Esempio n. 12
0
 public static void SetCType(int cursor, char charType)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetCType(cursor, charType);
     }
     else
     {
         OlapNativeImports32.SetCType(cursor, charType);
     }
 }
Esempio n. 13
0
 public static void SetParam(int cursor, uint param)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetParam(cursor, param);
     }
     else
     {
         OlapNativeImports32.SetParam(cursor, param);
     }
 }
Esempio n. 14
0
 public static bool GetNextSubItem(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetNextSubItem(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetNextSubItem(cursor));
     }
 }
Esempio n. 15
0
 public static void SetSubsetRefName(int cursor, string subsetRefName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSubsetRefName(cursor, subsetRefName);
     }
     else
     {
         OlapNativeImports32.SetSubsetRefName(cursor, subsetRefName);
     }
 }
Esempio n. 16
0
 public static void SetFlags(int cursor, int flags)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetFlags(cursor, flags);
     }
     else
     {
         OlapNativeImports32.SetFlags(cursor, flags);
     }
 }
Esempio n. 17
0
 public static void SetErrorLog(int cursor, string fileName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetErrorLog(cursor, fileName);
     }
     else
     {
         OlapNativeImports32.SetErrorLog(cursor, fileName);
     }
 }
Esempio n. 18
0
 public static void SetEncoding(int cursor, IpoEncoding encoding)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetEncoding(cursor, encoding);
     }
     else
     {
         OlapNativeImports32.SetEncoding(cursor, encoding);
     }
 }
Esempio n. 19
0
 public static int MdsConnectServerExtW(int clientHandle, string servername, string username, string password, int timeOut, int terminalID, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsConnectServerExtW(clientHandle, servername, username, password, timeOut, terminalID, error));
     }
     else
     {
         return(OlapNativeImports32.MdsConnectServerExtW(clientHandle, servername, username, password, timeOut, terminalID, error));
     }
 }
Esempio n. 20
0
 public static void SetDimension(int cursor, string dimName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetDimension(cursor, dimName);
     }
     else
     {
         OlapNativeImports32.SetDimension(cursor, dimName);
     }
 }
Esempio n. 21
0
 public static int MdsDisconnectServer(int clientHandle, int cursor, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsDisconnectServer(clientHandle, cursor, error));
     }
     else
     {
         return(OlapNativeImports32.MdsDisconnectServer(clientHandle, cursor, error));
     }
 }
Esempio n. 22
0
 public static void SetCube(int cursor, string cubeName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetCube(cursor, cubeName);
     }
     else
     {
         OlapNativeImports32.SetCube(cursor, cubeName);
     }
 }
Esempio n. 23
0
 public static void CallBegin(int cursor, UniFunction function)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.CallBegin(cursor, function);
     }
     else
     {
         OlapNativeImports32.CallBegin(cursor, function);
     }
 }
Esempio n. 24
0
 public static void SetElement(int cursor, string elemName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetElement(cursor, elemName);
     }
     else
     {
         OlapNativeImports32.SetElement(cursor, elemName);
     }
 }
Esempio n. 25
0
 public static int MdsapiGetErrorMessageW(int[] error, int errorCode, string message, int numChars)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsapiGetErrorMessageW(error, errorCode, message, numChars));
     }
     else
     {
         return(OlapNativeImports32.MdsapiGetErrorMessageW(error, errorCode, message, numChars));
     }
 }
Esempio n. 26
0
 public static void SetSValue(int cursor, string value)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSValue(cursor, value);
     }
     else
     {
         OlapNativeImports32.SetSValue(cursor, value);
     }
 }
Esempio n. 27
0
 public static int GetId(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetId(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetId(cursor));
     }
 }
Esempio n. 28
0
 public static int GetCachedValuesCount(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetCachedValuesCount(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetCachedValuesCount(cursor));
     }
 }
Esempio n. 29
0
        public static int MdsDoubleToString(out string formattedNumber, double number)
        {
            StringBuilder sb         = new StringBuilder(1000);
            int           returnCode = 0;

            if (Environment.Is64BitProcess)
            {
                returnCode      = OlapNativeImports64.MdsDoubleToString(sb, number);
                formattedNumber = sb.ToString();
            }
            else
            {
                returnCode      = OlapNativeImports32.MdsDoubleToString(sb, number);
                formattedNumber = sb.ToString();
            }
            return(returnCode);
        }