win32 play flash file

国外网站收集的一段代码,很简单,实现播放flash文件,贴出来大家分享

 

#include "stdafx.h"
#include "win32 play flash file.h"


int WINAPI WinMain(HINSTANCE inst,HINSTANCE prev,LPSTR cmd,int show) {
 MSG   msg={0}; void* init = GetProcAddress(LoadLibrary(L"atl"),"AtlAxWinInit");
 _asm call init;
 
 //CreateWindow(L"AtlAxWin", L"E:\\为应聘做准备
\\DirectedUI(炫彩界面库)\\win32 play flash file\\win32 play flash file\\zjw.swf", WS_VISIBLE|WS_POPUP,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),0,0,0,0);

 
 HWND m_hWnd = CreateWindowEx(WS_EX_LAYERED, L"AtlAxWin",L"E:\\为应聘做准备
\\DirectedUI(炫彩界面库)\\win32 play flash file\\win32 play flash file\\zjw.swf",WS_VISIBLE|WS_POPUP,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),0,0,0,0);
 
 SetLayeredWindowAttributes(m_hWnd, RGB(0xff, 0xff, 0xff), 0, LWA_COLORKEY);
 while (GetMessage(&msg,0,0,0))
 {
  TranslateMessage(&msg);
  DispatchMessage(&msg);
 }
 
}

win32 play flash file_第1张图片

你可能感兴趣的:(Flash)