Udostępnij za pośrednictwem


Project “Hilo”, A Complete C++ / Windows 7 Sample Application

The C++ team has introduced a new sample series designed to demonstrate building a rich Windows 7 application for working with pictures, from scratch.  Each step will add new features including touch, animation, etc.  You can read more about the sample series and download full source code from the main site.

The first version builds a carousel control for displaying pictures and includes browsing support:

image

The application is written completely in C++ directly against Windows (no frameworks).  It takes advantage of new WIN32 API’s,

image

such as IUIAnimationStoryboard which is a new feature in Windows that allows one to do animation storyboards:

     MIDL_INTERFACE("A8FF128F-9BF9-4af1-9E67-E5E410DEFB84")
    IUIAnimationStoryboard : public IUnknown
    {
    public:
        virtual /* [annotation] */ 
        __checkReturn
        HRESULT STDMETHODCALLTYPE AddTransition( 
            /* [annotation][in] */ 
            __in  IUIAnimationVariable *variable,
            /* [annotation][in] */ 
            __in  IUIAnimationTransition *transition) = 0;
        
        virtual /* [annotation] */ 
        __checkReturn
        HRESULT STDMETHODCALLTYPE AddKeyframeAtOffset( 
            /* [annotation][in] */ 
            __in  UI_ANIMATION_KEYFRAME existingKeyframe,
            /* [annotation][in] */ 
            __in  UI_ANIMATION_SECONDS offset,
            /* [annotation][retval][out] */ 
            __out  UI_ANIMATION_KEYFRAME *keyframe) = 0;

The C++ team wants to make this series a long term investment which is useful for you. Please do send us your feedback so we can use it to shape future installments.

Enjoy!

Comments

  • Anonymous
    June 06, 2010
    Hi , Its very good example for using Interface...Pls it is possible that u can share the same code for RDP in c++ how we can connect tow machines by using vc++. wcc_nitin@hotmail.com if possible please comment it...or share the thoughts...thanks in tons...