CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    3

    Unhappy add flash into a richedit control

    Hi,

    I'm trying to add flash into a richedit control via InsertObject method of IRichEditOle interface, i'm creating the flash using :

    CoCreateInstance( CLSID_ShockwaveFlash , NULL , CLSCTX_INPROC_SERVER , IID_IShockwaveFlash , (void**) &pSwf);

    after that i'm getting the interface for IOleObject using :

    pSwf->QueryInterface(IID_IOleObject, (void**)&pObject);

    now setting some params of the flash and the IOleObject i'm using InsertObject() method to insert the flash object to the richedit.

    every thing seems to work well: the flash object gets inside the richedit, the problem is that i can't play the flash (All i see is a black squre) does any one have any idea what can be the problem???

    thx is advance

    ishay

  2. #2
    Join Date
    Nov 2004
    Location
    Pakistan
    Posts
    466

    Re: add flash into a richedit control

    Does your flash object work fine out of richedit, I mean beng child of any other window ?

    Kindly post the code that you used to create it, so that helpers try digging out after seeing the code.

    regards
    » Please 'Rate This Post' if it helped (encourage us to help you more)
    » Build GUI in minute using rad c++
    » Free IDE + GUI code generator - screenshot
    » Free WINAPI sourcecode and tutorials

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured