========================================================================
			Stephane's Mediathek'97 Import Filter S.D.K
========================================================================


This sample code provided is for use with Visual C++ 4.x using 
Microsoft Foundation Classes (MFC), and will allow you to 
develop your own import filter for Mediathek'96. Note that you
are not obliged to use the MFC, but they make things lot easier
especially for Dialog boxes and registry functions.

You are required to use the same functions (but you can add
more if you need to). The base functions must return the
same values as indicated.

To use this project, you must first edit the resources. 
In the string resources, you will have to fill at least the
three values : 
- IDS_FILEEXT : the file-type extension of your filter
- IDS_FILETYPE : the default line displayed in FileOpen DLG.
- IDS_FILTERNAME : your filter's name which should be used
  as a section in .INI file, or as a Mediathek'96 subkey in 
  the registry. (the registry key, or INI path are given to
  you with the SetProperties function)

Then, you need to edit the Property Dialog box to set your
filter properties. This property dialog should be displayed 
from the SetProperties function if the bShowDlg flag is set.
The Setproperties function must load the properties into global
variables (You should declare one global instance for the
property Dialog and use its variables), and display the
box and save the modified properties only if the bShowDlg flag
was set.

The only function to be declared as exported in the .DEF file
must be the GetFunctionInfo, so that Mediathek knows the 
adress of the other DLL functions.

The GetFilterInfo function doesn't need to be changed. It's
purpose is only to return information about the filter. 

The initialize function should open the import file 
(which should be also a global variable) and, if you need,
to checks a few things out, or just doint some initializations.

The CloseImport function should close the import file, and 
dump any global objects allocated during the procedure.

The GetStepsNb function must return the number of steps 
required to import the file. That is to say, you must first
analyse the import file, to know exactly how many steps it 
will take to make the procedure complete.

The GetNextObject function will be called GetStepsNb times
to import the entries. 

For more information about what procedure is doing, or should
do, and about the return codes, see the code in ImpCine.cpp

The naming convention for an import DLL is IMP*.DLL and the
DLLs must be in Mediathek's executable directory.

Finally, don't forget to set the version Info in the resources

If you respect all these requirements (also in the code sample)
you've won the "Yes, it runs with Mediathek" logo compliant
software label (congratulations !)

Note : if you decide to use this workspace to build your import
filter, don't forget to replace the IMPCINE string in resources
version Info and also in the .DEF file.

Bye Now ! and, have fun !

