MultiROM Once Again Available for the Galaxy S4

Multiboot, or the ability to select betweenmultiple operating systems on a single device at … more

Build an Impractical But Awesome Lego Mindstorm Dock

The vast majority of what we cover here on the XDA-Developers News Portal relates to … more

MultiROM Makes its Way Over to the HTC One (M8)

While browsing our forum, you will undoubtedly find more than a few enticing ROMs available … more

Welcome to the New XDA-Developers Portal!

You may recall that a few weeks ago, we opened up the XDA-2015 forum themesto intrepid users … more
Post Reply

[Q] Trouble with compilation in Store in Windows Phone 8

27th August 2014, 11:14 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Aug 2014
I'm presenting a problem. I have built an application that has Win32 libraries that do not belong to the subset that has in common with WinRT. From my computer I can deploy the application and working properly. But when I go to the store my application is compiled with WinRT preventing several of the features work correctly.

In turn, the problem that would be working blind because we would never know from the development environment if we are building the application works perfectly until published in up tent.

Is there any chance from the development environment that I can detect which libraries would not work once compiled into the store?

Greetings ... Jorge
28th August 2014, 08:40 AM   |  #2  
FloatingFatMan's Avatar
Senior Member
Thanks Meter: 537
 
2,663 posts
Join Date:Joined: Apr 2005
More
What development environment are you using? Assuming it's Visual Studio, you can't use Win32 libraries on a WP app, so how are you managing to do that?

Aren't you doing test builds to the emulator?
The Following User Says Thank You to FloatingFatMan For This Useful Post: [ View ]
28th August 2014, 04:49 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Aug 2014
Quote:
Originally Posted by FloatingFatMan

What development environment are you using? Assuming it's Visual Studio, you can't use Win32 libraries on a WP app, so how are you managing to do that?

Aren't you doing test builds to the emulator?

Unfortunately is neccesary to use these Win32 libraries to this app,... I'm using Visual Studio 2013 with Windows Phone 8 SDK.... so I could detect where is those assemblies... but the problem is that it is ignorance which are all native Windows assemblies that are not compiled for WinRT and there is no way for the development environment I have this problem and this means that if I am going to develop an app for X platform, that development environment should not let me use something that is not available for that platform, some of that has to exist for this problem, or at least if I let him use it when testing will have to display errors or exceptions; I can not wait for it to install the store to see if it works properly or not

Hence arise two questions I would appreciate help to find possible solution ...

1. exist this solution from the development environment to tell if it will be problems once used to give possible assemblies conflict with WinRT ???

2 There is a way to tell VS that the app you are going to do is to WinRT ??? perhaps with a more modern version ??? and with that and solve the problem from the same environment ???

Best regards and thanks repeated
28th August 2014, 05:43 PM   |  #4  
FloatingFatMan's Avatar
Senior Member
Thanks Meter: 537
 
2,663 posts
Join Date:Joined: Apr 2005
More
I still don't get how you're doing this. When you build your app, you select the target platform, if you select ARM and have calls to Win32 API in there, it won't even compile...

How can you not know what Win32 call's you're making?
28th August 2014, 06:50 PM   |  #5  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Aug 2014
Quote:
Originally Posted by FloatingFatMan

I still don't get how you're doing this. When you build your app, you select the target platform, if you select ARM and have calls to Win32 API in there, it won't even compile...

How can you not know what Win32 call's you're making?

Unfortunatelly it compiles with ARM and run in the device too....

I know these Win32 calls of course, for example:

IsolatedStorageSettings, XDocument.Save ..... and others....

I have found the changes that I can do to resolv the problems...

But the problem is that I need to know if exists a way to detect through Visual Studio or another way wich assemblies or calls can give errors, or raise exceptions... Is a blind development for example:

I develop an app with different assemblies, into these assemblies there are 2 assemblies that can not be compatible with WinRT, when I compile with ARM there no raise errors or exceptions, but when I up to the store and when I install in my device from this store, I discover that this have these problems with the assemblies.

I'm concerned with that because is so strange...

Grettings
28th August 2014, 08:01 PM   |  #6  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Aug 2014
Also if you have a list with some assemblies of Win32 that are uncompatible with WinRT ... i will be gladded with your help

Grettings...
28th August 2014, 09:32 PM   |  #7  
FloatingFatMan's Avatar
Senior Member
Thanks Meter: 537
 
2,663 posts
Join Date:Joined: Apr 2005
More
Quote:
Originally Posted by jhcastellanos

Also if you have a list with some assemblies of Win32 that are uncompatible with WinRT ... i will be gladded with your help

Grettings...

I suggest familiarising yourself with MSDN.

http://msdn.microsoft.com/en-us/libr.../br205757.aspx
The Following User Says Thank You to FloatingFatMan For This Useful Post: [ View ]
28th August 2014, 10:50 PM   |  #8  
Recognized Developer
Flag Seattle
Thanks Meter: 2,698
 
5,682 posts
Join Date:Joined: Jan 2011
More
Have you tried just uploading your .XAP to the store? The store doesn't actually compile anything; they never see your source code.

Out of curiosity, *how* are you calling Win32 libraries that aren't part of the phone SDK? Did you use dll2lib and link them at built time? Use a hack to get the entry point of LoadLibrary and load them at runtime? Use DllImport from .NET code?

Also, not sure why you're talking about IsolatedStorageSettings. That's not a Win32 API at all; it's a Silverlight (.NET) one that is available on Silverlight for Windows Phone since the 7.0 release.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes