.swf inside exe application

This is a discussion on .swf inside exe application within the C++ Programming forums, part of the General Programming Boards category; I have made one application, and now I wanna include .swf file in one part. Can anyone help me with ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    4

    .swf inside exe application

    I have made one application, and now I wanna include .swf file in one part.
    Can anyone help me with code, or where I can fine more information?
    Thx

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    google for "embedding flash player".
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    I was trying search .swf into .exe, but always get result for some converters, what I dont need.
    Thx, I will try search with that terms.

    Some other suggestions maybe?

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,671
    >> .swf inside exe application
    Why do you want the swf "inside" the exe? If the exe simply uses the swf, why not just keep them separate?

    gg

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Are you trying to play a .swf file from a program that you created? Be warned that this might turn out to be quite difficult.

    On the other hand, you could just get some other program to do it, i.e.
    Code:
    system("\"c:\\program files\\mozilla firefox\\firefox.exe\" file.swf");
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Be extremely careful about how you do that, though. The above line would not work on a German Windows, for example. Nor would it work if Firefox was installed in a non-standard location.

    A better solution would be to just ShellExecute the swf directly and let the file associations handle the rest.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Mmm hmm, I was going to suggest that, but the last Windows computer I was on didn't have an association for .swf files, even though IE, four or five versions of Netscape, and Opera were installed.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    True, I just remembered that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Quote Originally Posted by dwks View Post
    Code:
    system("\"c:\\program files\\mozilla firefox\\firefox.exe\" file.swf");
    And what if they dont have FireFox!? :P

  10. #10
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    I will check this latter, I 'm busy now on my collage..

    If you want to try code and let others to know try this one:
    http://www.codeproject.com/KB/cpp/FlashGui.aspx

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,473
    I skimmed the article and don't think it is mentioned, but that ocx also exposes flash function FSCommand(). This allows you to have a one way communication channel between the Flash and the hosting code (on your case C++).

    Check Adobe's DevNet for a rundown on this precious function. It is written for VB, but most of what is in there applies to any hosting language.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to run an exe command in c++ and get back the results?
    By mitilkhatoon in forum C++ Programming
    Replies: 5
    Last Post: 09-21-2006, 06:00 PM
  2. Using internet browsers internally in application
    By alphaoide in forum Tech Board
    Replies: 5
    Last Post: 11-06-2005, 02:19 PM
  3. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  4. classes in an exe. objects from text file.
    By davebaggott in forum Windows Programming
    Replies: 0
    Last Post: 10-08-2001, 02:55 AM
  5. Win application not very portable
    By swed in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2001, 11:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21