Jump to content
  • Advertisement
Sign in to follow this  
jchmack

Flash + win32 help

This topic is 3387 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently stumbled across this article on how to (very simply) get a flash interface on a win32 app. http://www.codeproject.com/KB/cpp/FlashGui.aspx?display=PrintAll&fid=263587&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=101 It compiles fine and then crashes. I think that the article is probably outdated. This is probably using an older version of flash or something. But I honestly don't know enough about flash to understand whats going wrong here. Can anyone get this code to work?
#include <windows.h>


int WINAPI WinMain(HINSTANCE inst,HINSTANCE prev,LPSTR cmd,int show) {
    MSG   msg={0}; void* init = GetProcAddress(LoadLibrary("atl"),"AtlAxWinInit"); _asm call init;
    CreateWindow("AtlAxWin", "c:\\WINDOWS\\Help\\Tours\\mmTour\\segment2.swf", WS_VISIBLE|WS_POPUP,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),0,0,0,0);
    while (GetMessage(&msg,0,0,0)) DispatchMessage(&msg);
};

I don't have the swf at "c:\\WINDOWS\\Help\\Tours\\mmTour\\segment2.swf" but i did change that to a swf I downloaded that does work in Internet Explorer so I believe I have flash installed alright.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!