/*************************************************************************** InitQT -- Initialize and Finalize Quicktime Environment Environment: Windows/CE Visual C++ 6.0 Creation: Start Visual C++ choose File -- New from the menu click "Projects" tab select Win32 Console Application name=InitQT location -- pick one click "Create new workspace and press OK click "An empty project" and press Finish, then press OK choose File -- New from the menu click the "Files" tab select C++ source file name = main.c Press OK edit main.c choose Project -- Setings from the menu click the "Link" tab add the lib file QTMLclient.lib to the front of the list of libs choose Tools -- Options from the menu click the "Directories" tab click the "Show directories" dropdown and pick "Library files" add a path to [quicktime SDK home]\SDK\Libraries e.g. c:\windows\Desktop\qt4win\QT501SDK\SDK\Libraries click the "Show directories" dropdown and pick "Include files" add a path to [quicktime SDK home]\SDK\CIncludes e.g. C:\WINDOWS\Desktop\qt4win\QT501SDK\SDK\CIncludes The executable is in the ./Debug subdirectory. Warnings: The first link issues the warning: "defaultlib "LIBCMT" conflicts with use of other libs." This warning can be ignored. ***************************************************************************/ /* Include Quicktime headers. ========================== */ #include "QTML.h" #include "Movies.h" /* M A I N * */ int main (int argc, char *argv[]) { InitializeQTML (0); // Initialize Quicktime 4 Windows Media Layer EnterMovies (); // Initialize Quicktime // . . . (Quicktime commands go here) ExitMovies (); // Finalize Quicktime TerminateQTML (); // Finalize Quicktime 4 Windows Media Layer return (0); } /*=========================( End of Source )=============================*/