In article <aBDic.15985$N9.9229@news.chello.at>,
"Martin Nedbal" <martin.TakeThisOut@nedbal.net> wrote:
> thanks for such a quick reply. Is this the correct flag definition ? Value
> 1L << 1 is shared by two flags (kInitializeQTMLUseGDIFlag and
> kQTMLNoIdleEvents) ?
<http://developer.apple.com/documentation/QuickTime/APIREF/SOURCESI/createportassociation.htm>
says that kQTMLNoIdleEvents gets passed to CreatePortAssociation.
Did you try the minimal sample Windows Quicktime program from:
<http://developer.apple.com/documentation/QuickTime/WIN/tp_qtwin_qtforwindows.5.htm>
Listing 2 (near the end of the page)?
int CALLBACK WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
MSG msg;
HANDLE hAccelTable;
OSStatus stat = noErr;
// Is there a previous instance? and couldn't Register window class? Report failure
if( ! hPrevInstance && ! InitApplication(hInstance)){
return FALSE;
}
if(noErr == stat){ stat = InitializeQTML(0); } // Initialize QTML
if(noErr == stat){ stat = EnterMovies(); } // Initialize QuickTime
if(noErr != stat){
MessageBox (hWnd, "QuickTime not available", "", MB_OK);
return FALSE; // Report failure
}
if( ! InitInstance(hInstance, nCmdShow)){ // Create main window
return FALSE; // Report failure
}
hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELSIMPLESDI));
///////////////////////////////////////////////////////////////////////////////
// Main message loop
///////////////////////////////////////////////////////////////////////////////
while(GetMessage(&msg, NULL, 0, 0)){ // Retrieve next message
// Check for keyboard accelerator
if( ! TranslateAccelerator (msg.hwnd, hAccelTable, &msg)){
TranslateMessage(&msg); // Convert virtual key to character
DispatchMessage(&msg); // Send message to window procedure
}
}
///////////////////////////////////////////////////////////////////////////////
ExitMovies(); // Terminate QuickTime
TerminateQTML(); // Terminate QTML
return msg.wParam;
} /* end WinMain */<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: new handles coming up after calling InitializeQTML ()