cancel
Showing results for 
Search instead for 
Did you mean: 

UltraLite and the Universal Windows Platform (UWP)?

Michael_Fischer
Explorer
3,175

Hi,

we have the first customer which wants to use UltraLite/ML sync in an universal app. As far as we can see, this is not suported right now. Can we get a short statement on this subject: will it be supported and when? Or do we have to use SQLite and handcraft synchronization?

Which I wouldn't want to do.

Kind regards,

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

The UltraLite WinRT components for Windows 8.1 can be used in a UWP app. These are found in %SQLANY17%\\UltraLite\\WinRT.

Former Member
0 Kudos

Sorry, but these dll's cannot be used in an Universal App. If you try to reference them in Visual Studio 2015, you get an error message. Can you provide us with a walkthrough ?

TIA Meinhard

Former Member
0 Kudos

In my VS 2015 I can do the following: 1. Create a blank Universal Windows App 2. Right click on References, click Add Reference..., browse to UltraLite.winmd in the SQLA install that is appropriate for the architecture, click OK. The reference is added. Note that you cannot build an architecture-independent app because the UltraLite WinRT components are architecture-dependent.

Can you tell me what error you are getting?

Former Member
0 Kudos

Thx Andy,

I can add the assembly to the project now, without VS 2015 complaining, but when I try to run it I get :

at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD) at UltraLite.DatabaseManager.Init() ...

Note that you cannot build an architecture-independent app because the UltraLite WinRT components are architecture-dependent.

What a pitty, any plans to change this ?

Former Member
0 Kudos

I am guessing the cause of that error is a missing reference to the MS VC++ 2013 Runtime Package for UWP apps, on which UltraLite for WinRT depends.

There are no plans to release an architecture-independent UltraLite for WinRT as it depends on natively built UltraLite C runtime libraries.