Beispiel #1
0
 public static double GetNValue(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetNValue(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetNValue(cursor));
     }
 }
Beispiel #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));
     }
 }
Beispiel #3
0
 private static IntPtr GetSubsetRefNameW(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetSubsetRefNameW(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetSubsetRefNameW(cursor));
     }
 }
Beispiel #4
0
 public static int MdsServerCountEx(int clientHandle, int[] error)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.MdsServerCountEx(clientHandle, error));
     }
     else
     {
         return(OlapNativeImports32.MdsServerCountEx(clientHandle, error));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #8
0
 public static void SetDecimalPlaces(int cursor, int places)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetDecimalPlaces(cursor, places);
     }
     else
     {
         OlapNativeImports32.SetDecimalPlaces(cursor, places);
     }
 }
Beispiel #9
0
 public static void SetTableId(int cursor, int tableId)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetTableId(cursor, tableId);
     }
     else
     {
         OlapNativeImports32.SetTableId(cursor, tableId);
     }
 }
Beispiel #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);
     }
 }
Beispiel #11
0
 public static void SetSize(int cursor, int size)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSize(cursor, size);
     }
     else
     {
         OlapNativeImports32.SetSize(cursor, size);
     }
 }
Beispiel #12
0
 public static void SetCType(int cursor, char charType)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetCType(cursor, charType);
     }
     else
     {
         OlapNativeImports32.SetCType(cursor, charType);
     }
 }
Beispiel #13
0
 public static void SetParam(int cursor, uint param)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetParam(cursor, param);
     }
     else
     {
         OlapNativeImports32.SetParam(cursor, param);
     }
 }
Beispiel #14
0
 public static bool GetNextSubItem(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetNextSubItem(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetNextSubItem(cursor));
     }
 }
Beispiel #15
0
 public static void SetSubsetRefName(int cursor, string subsetRefName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSubsetRefName(cursor, subsetRefName);
     }
     else
     {
         OlapNativeImports32.SetSubsetRefName(cursor, subsetRefName);
     }
 }
Beispiel #16
0
 public static void SetFlags(int cursor, int flags)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetFlags(cursor, flags);
     }
     else
     {
         OlapNativeImports32.SetFlags(cursor, flags);
     }
 }
Beispiel #17
0
 public static void SetErrorLog(int cursor, string fileName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetErrorLog(cursor, fileName);
     }
     else
     {
         OlapNativeImports32.SetErrorLog(cursor, fileName);
     }
 }
Beispiel #18
0
 public static void SetEncoding(int cursor, IpoEncoding encoding)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetEncoding(cursor, encoding);
     }
     else
     {
         OlapNativeImports32.SetEncoding(cursor, encoding);
     }
 }
Beispiel #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));
     }
 }
Beispiel #20
0
 public static void SetDimension(int cursor, string dimName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetDimension(cursor, dimName);
     }
     else
     {
         OlapNativeImports32.SetDimension(cursor, dimName);
     }
 }
Beispiel #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));
     }
 }
Beispiel #22
0
 public static void SetCube(int cursor, string cubeName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetCube(cursor, cubeName);
     }
     else
     {
         OlapNativeImports32.SetCube(cursor, cubeName);
     }
 }
Beispiel #23
0
 public static void CallBegin(int cursor, UniFunction function)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.CallBegin(cursor, function);
     }
     else
     {
         OlapNativeImports32.CallBegin(cursor, function);
     }
 }
Beispiel #24
0
 public static void SetElement(int cursor, string elemName)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetElement(cursor, elemName);
     }
     else
     {
         OlapNativeImports32.SetElement(cursor, elemName);
     }
 }
Beispiel #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));
     }
 }
Beispiel #26
0
 public static void SetSValue(int cursor, string value)
 {
     if (Environment.Is64BitProcess)
     {
         OlapNativeImports64.SetSValue(cursor, value);
     }
     else
     {
         OlapNativeImports32.SetSValue(cursor, value);
     }
 }
Beispiel #27
0
 public static int GetId(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetId(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetId(cursor));
     }
 }
Beispiel #28
0
 public static int GetCachedValuesCount(int cursor)
 {
     if (Environment.Is64BitProcess)
     {
         return(OlapNativeImports64.GetCachedValuesCount(cursor));
     }
     else
     {
         return(OlapNativeImports32.GetCachedValuesCount(cursor));
     }
 }
Beispiel #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);
        }