Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 08:39:58 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  Finally got Flash and MFC communicating with each other!!
Pages: 1   Go Down
Print
Author Topic: Finally got Flash and MFC communicating with each other!!  (Read 663 times)
0 Members and 1 Guest are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« on: February 10, 2010, 02:09:44 PM »

Finally found out how to have Flash and C++/MFC talking with each other.  I got it working in a stand alone App, but, so far, the same process is failing inside of a plugin/dialog.  I asked Art and he said since I am running the Normal Flash screen plugin as well, my plugin flash screen may be conflicitng with the main screen plugin.

Does anyone know how to have two Active X (flash objects), playing to gether in the same app?
I named my IShockwave flash object different from Arts Flash active x object.

My thought is to be able to have REALLY nice dialog screens in plugins, since you can do SOOOOOO much more in flash.

a copy of my MFC app called:  Flash-C App.exe is attached.

NOTE:  You have to have flash Player 10 installed so the app can use the shockwave flash object.

scott

* Flash-C App.exe (48 KB - downloaded 47 times.)
« Last Edit: February 10, 2010, 02:38:11 PM by poppabear » Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: February 26, 2010, 01:37:15 PM »

sorry,

    The flash screen wasnt showing up, becuase the path to where the flash move was the pathe on my computer..........  opps......

So, if you would like to try it again, download the zip, and inside is the Flash movie
called:  FlashWindow.swf   put this movie in your C:\FlashWindow.swf  (put it directly under your C drive, since this will be the same on everyones windows computers).

Make sure you have Flash player 9 or higher installed on your comp as well.

sorry about the Opps.........
also replace the Old Flash app with this one that is in the zip since it has the C drive path hard coded in the app for the movies location.

scott

* Fixed Flash App.zip (20.47 KB - downloaded 37 times.)
« Last Edit: February 26, 2010, 01:44:14 PM by poppabear » Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!