locked
Building Windows Store Apps Using C ( Not C++ )

    Question

  • Hi , I Am Currently Developing Win32 Apps Using C .

    Now I Want To Develop Windows Store Apps Using C .

    But I Am Finding It Too Hard .

    Functions Like TextOut , TranslateMessage , Rectangle Are Not Working .

    Please Help Me .

    Wednesday, April 23, 2014 2:35 AM

Answers

  • Writing Windows Store apps in C is theoretically possible, but it will be quite difficult and is not recommended. The Windows Runtime API is heavily based on COM. This is abstracted for high level languages (such as C#, JavaScript, and in many cases C++/Cx), but will require directly creating calling the vtables from C.

    Windows Store apps can use only specific Win32 and COM APIs . They do not use the same windowing model you are using with TranslateMessage and TextOut. For UI they can use either DirectX or Windows::UI::Xaml.

    See the C++ and XAML tutorial in the Get started documentation for information on writing Windows Store apps in C++/Cx. There is no direct documentation on writing Windows Store apps in C.

    --Rob

    • Marked as answer by Corona W10 Wednesday, April 23, 2014 4:11 AM
    Wednesday, April 23, 2014 3:09 AM
    Moderator