Fix bug 170621

Static build changes to support viewer, mfcembed, winembed
r=cls


git-svn-id: svn://10.0.0.236/trunk@135600 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blythe%netscape.com
2002-12-23 22:32:22 +00:00
parent 6528d5a8ef
commit 3d0d922b00
13 changed files with 140 additions and 13 deletions

View File

@@ -68,6 +68,14 @@
#define MAX_LOADSTRING 100
#ifdef _BUILD_STATIC_BIN
#include "nsStaticComponent.h"
nsresult PR_CALLBACK
app_getModuleInfo(nsStaticModuleInfo **info, PRUint32 *count);
#endif
const TCHAR *szWindowClass = _T("WINEMBED");
// Foward declarations of functions included in this code module:
@@ -167,6 +175,11 @@ int main(int argc, char *argv[])
LoadString(ghInstanceResources, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
MyRegisterClass(ghInstanceApp);
#ifdef _BUILD_STATIC_BIN
// Initialize XPCOM's module info table
NSGetStaticModuleInfo = app_getModuleInfo;
#endif
// Init Embedding APIs
NS_InitEmbedding(nsnull, nsnull);