Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23765

Windows: Direct API Access not working

    Details

    • Type: Epic
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      Winodws 10 Pro
      Studio: 4.7.0.201607250649
      
Ti SDK: 5.4.0.GA
      
Appc NPM: 4.2.7
      Appc CLI: 5.4.0
      Node v4.4.4

    • Epic Name:
      Hyperloop for Windows
    • Story Points:
      21

      Description

      Steps to reproduce:

      1. Use the GA environment above.
      2. Create a new project appc new
      3. In the app.js add the line below or follow the docs tutorial.

      Docs

      http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Runtime_Direct_API_Access

      App.js

      var win = require('Windows.UI.Xaml.Window');
      

      Actual

      [WARN] :   C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.ApplicationModel.DataTransfer.DataPackage.cpp(224): warning C4973: 'Windows::ApplicationModel::DataTransfer::IDataPackage::SetUri': marked as deprecated [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [WARN] :   C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.ApplicationModel.DataTransfer.DataPackageView.cpp(254): warning C4973: 'Windows::ApplicationModel::DataTransfer::IDataPackageView::GetUriAsync': marked as deprecated [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2923: 'HAL::JSExport': 'StorageProvider' is not a valid template type argument for parameter 'T' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2672: 'HAL::JSObject::GetPrivate': no matching overloaded function found [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2974: 'HAL::JSObject::GetPrivate': invalid template argument for 'T', type expected [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(197): error C3536: 'result_wrapper': cannot be used before it is initialized [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(197): error C2227: left of '->wrap' must point to class/struct/union/generic type [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2923: 'HAL::JSExport': 'StorageProvider' is not a valid template type argument for parameter 'T' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2672: 'HAL::JSObject::GetPrivate': no matching overloaded function found [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2974: 'HAL::JSObject::GetPrivate': invalid template argument for 'T', type expected [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(176): error C3536: 'result_wrapper': cannot be used before it is initialized [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(176): error C2227: left of '->wrap' must point to class/struct/union/generic type [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [WARN] :   "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\WindowsHyperloop.sln" (default target) (1) ->
      "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj.metaproj" (default target) (2) ->
      "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj" (default target) (4) ->
      (ClCompile target) -> 
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.ApplicationModel.DataTransfer.DataPackage.cpp(224): warning C4973: 'Windows::ApplicationModel::DataTransfer::IDataPackage::SetUri': marked as deprecated [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.ApplicationModel.DataTransfer.DataPackageView.cpp(254): warning C4973: 'Windows::ApplicationModel::DataTransfer::IDataPackageView::GetUriAsync': marked as deprecated [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\WindowsHyperloop.sln" (default target) (1) ->
      "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj.metaproj" (default target) (2) ->
      "C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj" (default target) (4) ->
      (ClCompile target) -> 
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(195): error C2923: 'HAL::JSExport': 'StorageProvider' is not a valid template type argument for parameter 'T' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
      [ERROR] :  C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2672: 'HAL::JSObject::GetPrivate': no matching overloaded function found [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(196): error C2974: 'HAL::JSObject::GetPrivate': invalid template argument for 'T', type expected [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(197): error C3536: 'result_wrapper': cannot be used before it is initialized [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFile.cpp(197): error C2227: left of '->wrap' must point to class/struct/union/generic type [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(174): error C2923: 'HAL::JSExport': 'StorageProvider' is not a valid template type argument for parameter 'T' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2039: 'StorageProvider': is not a member of 'Titanium::Windows::Storage' [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2065: 'StorageProvider': undeclared identifier [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2672: 'HAL::JSObject::GetPrivate': no matching overloaded function found [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(175): error C2974: 'HAL::JSObject::GetPrivate': invalid template argument for 'T', type expected [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(176): error C3536: 'result_wrapper': cannot be used before it is initialized [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
        C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\Native\src\Windows.Storage.StorageFolder.cpp(176): error C2227: left of '->wrap' must point to class/struct/union/generic type [C:\Users\Tester\.titanium\vsbuild\windowsHyperloop\win10.x86\Native\TitaniumWindows_Native.vcxproj]
          2 Warning(s)
          18 Error(s)
      Time Elapsed 00:05:20.49
      

      Expected

      No error is shown and the application builds successfully.

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi (Inactive)
              Reporter:
              jlongton Josh Longton
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10010
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code