#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);
};
Flash + win32 help
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement