Raman Sharma

Back to Profile: Raman_Sharma

Comments

  • Checking In: Stephan T. Lavavej - Inside STL (the person, not the library)

    Great video STL.

    Btw, you might find this useful:

    http://www.segwaysafety.com/

    Smiley

     

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @ZeroInfinite: And the best part is that Windows 8 lets you create apps with both HTML and XAML.  You can pick whichever suits your taste and requirements best.

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @Glen:OK let me try to answer some of those questions to the best of my knowledge.  I work on the team that provides developer tools for building applications.  As such, I will stick to answering questions about that area.  For questions about platform capabilities and competitive offerings, I would urge you to post your questions on Ch9 videos related to those topics.  There are several from the //BUILD conference.

    Now before I answer your questions, let me just ensure that you understand a few things: you can use several tools to build applications for Windows 8.  XAML with C#, XAML with C++, DirectX with C++ and HTML/JavaScript are some of those.  Using compiled languages like C# and C++ you could always tap into the OS.  Now you can do it using JavaScript also.  But do understand that when you are creating application with HTML/JavaScript, you are NOT extending the browser.  The application you write is a standalone application that runs directly on the OS.

    Also, the purpose of this video was very specific.  If you understand and like the concept of building Metro style app (not browser plug-ins) using HTML and JavaScript, then you can use C++/CX for computation intensive jobs that you app may want to perform.

    Now to your questions (those I can answer):

    > Can you create NEW C++/CX UI Controls?

    For apps written using HTML/JS you cannot, but for apps using XAML for the UI, you can.

    > Can you write a game in the browser?

    Once again, the browser doesn't come into the pictire in the traditional sense.  If your question is whether you can create apps that are games using HTML/JS, yes you can.

    Thank you

    Raman Sharma, Visual C++

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @Glen:Some of those statements make sense, some don't and some are unrelated.  Please feel free to write to me at rasharm_msft@hotmail.com and we can discuss these firther (maybe setup a conf-call).  Maybe you can then post your understanding here Smiley

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @Glen:You can create whatever HTML control you want to.  Just that C++ cannot be used to draw to the screen for such controls, since there is no interface that lets native code do that for HTML/JS apps.

    About your second question: All Metro style apps run in their own sandbox and are thus safe to the extent that is afforded by the sandbox.  This sandbox prevents unauthorized access to system resources.  This means your C++/CX code can execute whatever calls it is allowed to by the Metro style SDK.  If your app package (containing all your app contents like HTML, JS, C++/CX DLLs etc.) passes App-Store validation, then it is safe to run on any machine.  In this sense these apps are more secure than ActiveX controls since there never was any validation that ActiveX is doing the right thing.

    For Metro style apps on the other hand, we have three levels of validations: at build time, at package upload time and at runtime.

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @Glen:Let me explain what I meant.  You can create HTML controls that are backed by C++/CX components for data-binding.  You can also create HTML/JS apps in which almost all the important processing happens in your engine written using C++/CX.  What you cannot do however is the following: creating an HTML app with a special DOM element whose rendering is entirely controlled by C++ using DirectX calls.  Does that make sense?

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @Ted.w: Thanks Ted.  Sure, we would be publishing some WRL examples too.  Please stay tuned to Channel 9 and VCBlog for more details.  Also, great job with that write-up.

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @slinger: That's correct.  This talk was recorded here in Redmond and not in the //BUILD conference.  What would you like to see more of?  Samples, Examples, Tutorials?

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @badpres: Sorry you didn't like it.  It was hard talking alone to a camera with no visual feedback whatsoever Smiley.  What specifically would you like to see improved?

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @tommy_2k:It is possible to create Windows Runtime wrappers on libraries without source code if the underlying binaries of the libraries fulfill all the requirements of the SDK for Metro style apps.  For more details on this topic, please watch this talk from Ale:

    http://channel9.msdn.com/events/BUILD/BUILD2011/TOOL-789C

  • Raman Sharma: Building Metro Style Apps with C++ and JavaScript

    @kindaDev: If you are referring to being able to to render 3D content using C++ on a HTML5 surface, then that is something not supported right now.  Do you have some example of a scenario in which you would want to do that instead of creating the overall application in C++?