//AddPoi with LocationFromAddress
        public static void AddPoi(string inStrAddress, bool inBPostal, bool inBValueMatch, string inCategory, string inName, bool inSearch_address, int inMaxTime)
        {
            LONGPOSITION lp;
            int          ret = CApplicationAPI.LocationFromAddress(out _mySError, out lp, inStrAddress, inBPostal, inBValueMatch, inMaxTime);

            O("LocationFromAddress returns: " + ret.ToString());
            SPoi p = new SPoi(lp, inCategory, inName, inSearch_address ? 1 : 0);

            ret = CApplicationAPI.AddPoi(out _mySError, ref p, inMaxTime);
            O("AddPoi returns: " + ret.ToString());
        }
        public static void LocationFromAddress(string inStrAddress, bool inBPostal, bool inBValueMatch, int inMaxTime)
        {
            LONGPOSITION location;
            int          ret = CApplicationAPI.LocationFromAddress(out _mySError, out location, inStrAddress, inBPostal, inBValueMatch, inMaxTime);

            O("LocationFromAddressEx returns: " + ret.ToString());
            if (ret == 1)
            {
                string tmpAddress;
                CApplicationAPI.GetLocationInfo(out _mySError, location, out tmpAddress, inMaxTime);
                O("x=" + location.lX.ToString() + ", y=" + location.lY.ToString() + ", address:" + tmpAddress);
            }
        }
        public static void AddBitmapToMap(string inPathToBitmap, string inAddress, int inMaxTime)
        {
            SError       error;
            int          lX, lY;
            int          nBitmapID;
            LONGPOSITION Position;

            CApplicationAPI.LocationFromAddress(out error, out Position, inAddress, false, inMaxTime);
            lX = Position.lX;
            lY = Position.lY;

            int ret = CApplicationAPI.AddBitmapToMap(out error, inPathToBitmap, lX, lY, out nBitmapID, inMaxTime);

            O("AddBitmapToMap returns: " + ret.ToString());
        }