×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    4

    How to mix two projects(one pure C++ native project , one C# project) in one XAP rel

    I have two projects,

    1. one is created as new project "Windows phone direct3D App (native only)"

    2. the 2nd project is "windows phone app" (C#)

    I added the two projects in one solution and want to generate one XAP to include both built binaries.

    How to achieve this? Thanks very much.

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    296

    Re: How to mix two projects(one pure C++ native project , one C# project) in one XAP

    Hello,

    That's not possible,
    one app = one xap.

    Unless it's a backgroundagent/library projet then you just add the reference to the app projet.

    Can you please tell us what are trying to achieve regarding the end user ?

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    4

    Re: How to mix two projects(one pure C++ native project , one C# project) in one XAP

    Thanks for your answer.
    The two projects are used as
    1. Native project (C++) is ported from legacy project source code(all are C++ source code) which can open animation file to play animation (DirectX 3D)
    2. The C# project is used to
    - help user download animiation files(from website) and list them in a ListBox
    - User choose one animation file from the list and it calls the native project to play the animation file.

    That is the user case. Not sure whether there is other good way to achieve this. Thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    474

    Re: How to mix two projects(one pure C++ native project , one C# project) in one XAP

    Hi.
    You must transform your C++ code in WinRT component and render it to a DrawingSurface or DrawingSurfaceBackgroundGrid in your C# code.

    You can find information about C++ support here : http://www.developer.nokia.com/Commu...ne_8#Direct_3D
    and different article on DirectX here : http://www.developer.nokia.com/Commu...tegory:DirectX

  5. #5
    Registered User
    Join Date
    Mar 2013
    Posts
    4

    Re: How to mix two projects(one pure C++ native project , one C# project) in one XAP

    Thanks very much. I will try the VS2012 sample project from "menu-File - New project - Windows phone direct 3D with XAML App" .
    But I met log issue in the WinRT component. The C# code can output log to "output" window but C++ code does nothing. I do not know what is the problem.
    I raise the problem and ask help at
    http://www.developer.nokia.com/Commu...621#post913621

Similar Threads

  1. Nokia Projects - cant change project license
    By truf in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2010-11-11, 11:28
  2. Delete a project hosted on nokia forum projects.
    By aasoftware in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 1
    Last Post: 2010-08-16, 14:40
  3. How can I convert easily from Visual Studio 2008 project to Symbian project?
    By K.John in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2009-08-17, 14:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×