This is the code in InitInstance:
Code: Select all
g_flashPlayer = FPC_LoadRegisteredOCX();
hInst = hInstance; // Store instance handle in our global variable
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
g_flashPlayerControl =
CreateWindow((LPCTSTR)FPC_GetClassAtom(g_flashPlayer),
NULL,
WS_CHILD | WS_VISIBLE | FPCS_TRANSPARENT | FPCS_NEED_ALL_KEYS, // use FPCS_NEED_ALL_KEYS if you movie should handle all keyboard input (ENTER, TAB etc.)
0, 0,
640,480,
hWnd,
NULL,
NULL,
NULL);
// Load the castle keep movie
HRESULT result = FPC_LoadMovie(g_flashPlayerControl, 0, L"testapp.swf");
I suspect my problem is in loading the swf itself, but FPC_LoadMovie isn't in the help, so I can't check what arguments it expects. Is a relative path acceptable as a URL, or does it have to be a full path with "file://" to load from the filesystem?
Joe