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