Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I heard that Windows 8 Phone apps must be type-safe MSIL to be placed in the Windows App Store. Is this right? And what about Windows 10 UWP? I need to use fast unsafe code with pointers in my UWP app, but I don't know if there any limitations for Windows Store programs.

What I have tried:

public unsafe scale(float* s, int n)
{
    float * l = s + n;

    while (s < l)
    {
        *s++ *= 0.25f;
    }
}
Posted
Updated 1-Aug-17 18:49pm
v2
Comments
virusstorm 3-Aug-17 9:26am    
You might want to check out this thread:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/5ffb29a2-3bab-4395-a571-0fe1dc809f59/how-to-enable-unsafe-for-a-c-phone-8-project?forum=wpdevelop

Doing pointer manipulation doesn't guarantee fast code, you may want to take a step back and look for other performance problems that are forcing you into pointer manipulation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900