[svn] / trunk / xvidcore / dshow / src / Configure.cpp Repository:
ViewVC logotype

Diff of /trunk/xvidcore/dshow/src/Configure.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1502, Sun Jul 18 00:58:14 2004 UTC revision 1503, Sun Jul 18 02:00:05 2004 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: Configure.cpp,v 1.2 2004-03-22 22:36:23 edgomez Exp $   * $Id: Configure.cpp,v 1.3 2004-07-18 02:00:05 suxen_drol Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 29  Line 29 
29  #include "config.h"  #include "config.h"
30  #include "resource.h"  #include "resource.h"
31    
32  /* "DllEntryPoint@12" in strmbase.lib\dllentry.obj stores the module in g_hInst  
33      this function must be called on DllEntry, inorder for property pages to function  static HINSTANCE g_xvid_hInst;
         likewise, we need g_hInst inorder to display property sheets from command line  
 */  
 extern HINSTANCE g_hInst;  
34    
35    
36  int adv_dialog(HWND hwndOwner)  int adv_dialog(HWND hwndOwner)
# Line 43  Line 40 
40    
41          psp[0].dwSize = sizeof (PROPSHEETPAGE);          psp[0].dwSize = sizeof (PROPSHEETPAGE);
42          psp[0].dwFlags = PSP_USETITLE;          psp[0].dwFlags = PSP_USETITLE;
43          psp[0].hInstance = g_hInst;          psp[0].hInstance = g_xvid_hInst;
44          psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);          psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);
45          psp[0].pszIcon = NULL;          psp[0].pszIcon = NULL;
46          psp[0].pfnDlgProc = adv_proc;          psp[0].pfnDlgProc = adv_proc;
# Line 53  Line 50 
50          psh.dwSize = sizeof (PROPSHEETHEADER);          psh.dwSize = sizeof (PROPSHEETHEADER);
51          psh.dwFlags = PSH_PROPSHEETPAGE;          psh.dwFlags = PSH_PROPSHEETPAGE;
52          psh.hwndParent = hwndOwner;          psh.hwndParent = hwndOwner;
53          psh.hInstance = g_hInst;          psh.hInstance = g_xvid_hInst;
54          psh.pszIcon = NULL;          psh.pszIcon = NULL;
55          psh.pszCaption = (LPSTR)"XviD Configuration";          psh.pszCaption = (LPSTR)"XviD Configuration";
56          psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);          psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);
57          psh.ppsp = (LPCPROPSHEETPAGE) &psp;          psh.ppsp = psp;
58    
59          return PropertySheet (&psh);          return PropertySheet (&psh);
60  }  }
# Line 70  Line 67 
67          LoadRegistryInfo();          LoadRegistryInfo();
68          adv_dialog( GetDesktopWindow() );          adv_dialog( GetDesktopWindow() );
69  }  }
70    
71    
72    /* strmbase.lib\dllentry.obj:DllEntryPoint@12 */
73    extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
74    
75    
76    BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved)
77    {
78            g_xvid_hInst = hInst;
79    
80            /* Call directshow DllEntryPoint@12 */
81        return DllEntryPoint(hInst, fdwReason, lpvReserved);
82    }
83    

Legend:
Removed from v.1502  
changed lines
  Added in v.1503

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4