Thread: Playing Flash files(swf) in Win32 window

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Playing Flash files(swf) in Win32 window

    How can I play Flash files in Win32 window?
    Can it be done with some Media Player functions?

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I doubt it Media Player doesn't play Flash files. The reason Browsers do is because they are
    instructed through other programs and registry, that’s why you have to install Flash first.

    And I think it might be illegal to run Flash's format of files and then sell the program.
    (Not sure, just a possibility.)

    EDIT: If you capture IE or a different Browsers frame/window, you could get it to appear on your main window. *Maybe*
    Last edited by Queatrix; 11-20-2005 at 08:46 AM.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I mean when Flash is installed.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    try typing the location of the .swf file into your browser.

  5. #5
    Registered User
    Join Date
    Nov 2005
    Posts
    52
    Disclaimer: I've never even thought hard about trying this, but....couldn't you use the same process you'd use to embed a browser control, and point it at the flash file?

    Oh - found some sample code for displaying an IE window/control in a .NET form here: http://samples.gotdotnet.com/quickst...fAxHosting.src

  6. #6
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    C++! Win32!

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Have you looked at the Shockwave Flash Active-X control?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  8. #8
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Where can I find information on that :P

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    More info?

    Google?

    "flash.ocx"

    In MSVC you can right click on a dialog and select 'Insert ActiveX Control.." Then select the Shockwave Flash Object.

    More info here
    http://www.bytescout.com/display_flash_in_visualc.html

    http://msdn.microsoft.com/library/de..._container.asp
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Well the first link is totally useless because I already mentioned that I will do it in C++ not in VC.

  11. #11
    Registered User
    Join Date
    Sep 2003
    Posts
    34
    Quote Originally Posted by maxorator
    Well the first link is totally useless because I already mentioned that I will do it in C++ not in VC.
    True, but you never specified which compiler you were using, C++ is a programming language, not a compiler. You said you were doing it with win32, many people who do Win32 use Visual C++. A 'thanks but I'm not using VC++, I'm using <compiler>' would have been more fitting. If you ask for help like this and you aren't very specific then you have no room to gripe about the help that is offered.
    -gunder

    if (problem)
    postcount++;

  12. #12
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    >>Well the first link is totally useless
    Well, excuse me!
    Its not like it shows the method required so you could apply it to your IDE.

    >>because I already mentioned that I will do it in C++ not in VC.

    Sorry, its hard to read your mind, as I have so little to work with......
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  13. #13
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by maxorator
    C++! Win32!
    You didn't have to read my mind
    Watch the sixth post in this thread.
    But thanks anyway...

  14. #14
    Registered User
    Join Date
    Sep 2003
    Posts
    34
    Quote Originally Posted by maxorator
    You didn't have to read my mind
    Watch the sixth post in this thread.
    But thanks anyway...
    Again, C++ is a programming language. There are several compilers and IDE's available. Win32 just means that you're making windows applications. You saying C++!! Win32!! doesn't give anyone any insight as to which compiler or IDE you are using.
    -gunder

    if (problem)
    postcount++;

  15. #15
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    First, C and C++ are very different and Visual C++ and C++ are very different too. That makes Visual C and C++ ULTRA different!
    Win32 is an API. MFC is an API. .NET is an API.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Window scrollbar
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 10-07-2005, 12:31 PM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. Playing Flash in C#
    By richardfish in forum C# Programming
    Replies: 3
    Last Post: 02-19-2005, 03:47 AM
  5. playing flash or putting in Internet Explorer
    By AtomRiot in forum Windows Programming
    Replies: 3
    Last Post: 02-13-2003, 01:04 PM