Hello, i'm busy with the embedding API project of FireFox ( https://wiki.mozilla.org/Embedding/NewApi/Win32 ). I got pass setting the Environment variable but if i try to compile the project i get these errors.
Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\mozilla-central\mozembed\common \embeddingsetup.cpp 162 1 win32_test Error 13 error C3861: 'GRE_GetGREPathWithProperties': identifier not found c:\mozilla-central\mozembed\common\embeddingsetup.cpp 170 1 win32_test Error 17 error C2664: 'nsIFile::Exists' : cannot convert parameter 1 from 'PRBool *' to 'bool *' c:\mozilla-central\mozembed\common \embeddingsetup.cpp 266 1 win32_test Error 14 error C2664: 'NS_NewNativeLocalFile' : cannot convert parameter 3 from 'nsGetterAddRefs<T>' to 'nsIFile **' c:\mozilla- central\mozembed\common\embeddingsetup.cpp 215 1 win32_test Error 15 error C2664: 'NS_NewNativeLocalFile' : cannot convert parameter 3 from 'nsGetterAddRefs<T>' to 'nsIFile **' c:\mozilla- central\mozembed\common\embeddingsetup.cpp 243 1 win32_test Error 16 error C2664: 'NS_NewNativeLocalFile' : cannot convert parameter 3 from 'nsGetterAddRefs<T>' to 'nsIFile **' c:\mozilla- central\mozembed\common\embeddingsetup.cpp 253 1 win32_test Error 4 error C2511: 'nsresult WebBrowserChrome::SetVisibility(PRBool)' : overloaded member function not found in 'WebBrowserChrome' c:\mozilla-central\mozembed\common \webbrowserchrome.cpp 279 1 win32_test Error 2 error C2511: 'nsresult WebBrowserChrome::OnLocationChange(nsIWebProgress *,nsIRequest *,nsIURI *)' : overloaded member function not found in 'WebBrowserChrome' c:\mozilla-central\mozembed\common \webbrowserchrome.cpp 217 1 win32_test Error 1 error C2511: 'nsresult WebBrowserChrome::IsWindowModal(PRBool *)' : overloaded member function not found in 'WebBrowserChrome' c: \mozilla-central\mozembed\common\webbrowserchrome.cpp 151 1 win32_test Error 3 error C2511: 'nsresult WebBrowserChrome::GetVisibility(PRBool *)' : overloaded member function not found in 'WebBrowserChrome' c: \mozilla-central\mozembed\common\webbrowserchrome.cpp 274 1 win32_test Error 5 error C2511: 'nsresult MozEmbedDirectoryProvider::GetFile(const char *,PRBool *,nsIFile **)' : overloaded member function not found in 'MozEmbedDirectoryProvider' c:\mozilla-central\mozembed\common \embeddingsetup.cpp 114 1 win32_test Error 24 error C2511: 'nsresult ContentListener::OnStartURIOpen(nsIURI *,PRBool *)' : overloaded member function not found in 'ContentListener' c:\mozilla-central\mozembed\common \contentlistener.cpp 68 1 win32_test Error 26 error C2511: 'nsresult ContentListener::IsPreferred(const char *,char **,PRBool *)' : overloaded member function not found in 'ContentListener' c:\mozilla-central\mozembed\common \contentlistener.cpp 97 1 win32_test Error 25 error C2511: 'nsresult ContentListener::DoContent(const char *,PRBool,nsIRequest *,nsIStreamListener **,PRBool *)' : overloaded member function not found in 'ContentListener' c:\mozilla-central \mozembed\common\contentlistener.cpp 89 1 win32_test Error 27 error C2511: 'nsresult ContentListener::CanHandleContent(const char *,PRBool,char **,PRBool *)' : overloaded member function not found in 'ContentListener' c: \mozilla-central\mozembed\common\contentlistener.cpp 107 1 win32_test Error 20 error C2264: 'mozilla::HashString' : error in function definition or declaration; function not called c:\mozilla-central\obj- i686-pc-mingw32\dist\include\nshashkeys.h 32 1 win32_test Error 21 error C2264: 'mozilla::HashString' : error in function definition or declaration; function not called c:\mozilla-central\obj- i686-pc-mingw32\dist\include\nshashkeys.h 454 1 win32_test Error 7 error C2146: syntax error : missing ';' before identifier 'vr' c:\mozilla-central\mozembed\common\embeddingsetup.cpp 162 1 win32_test Error 11 error C2143: syntax error : missing ';' before '}' c:\mozilla- central\mozembed\common\embeddingsetup.cpp 167 1 win32_test Error 10 error C2143: syntax error : missing ';' before '{' c:\mozilla- central\mozembed\common\embeddingsetup.cpp 162 1 win32_test Error 19 error C2084: function 'uint32_t mozilla::HashString(const uint16_t *,size_t)' already has a body c:\mozilla-central\obj-i686-pc- mingw32\dist\include\mozilla\hashfunctions.h 333 1 win32_test Error 18 error C2084: function 'uint32_t mozilla::HashString(const uint16_t *)' already has a body c:\mozilla-central\obj-i686-pc- mingw32\dist\include\mozilla\hashfunctions.h 326 1 win32_test Error 8 error C2065: 'vr' : undeclared identifier c:\mozilla-central \mozembed\common\embeddingsetup.cpp 162 1 win32_test Error 12 error C2065: 'vr' : undeclared identifier c:\mozilla-central \mozembed\common\embeddingsetup.cpp 170 1 win32_test Error 9 error C2059: syntax error : '{' c:\mozilla-central\mozembed \common\embeddingsetup.cpp 162 1 win32_test Error 22 error C2039: 'ToProvidedString' : is not a member of 'nsID' c: \mozilla-central\obj-i686-pc-mingw32\dist\include\nsnetutil.h 1813 1 win32_test Error 23 error C1083: Cannot open include file: 'nsIDOMWindow2.h': No such file or directory c:\mozilla-central\mozembed\common\embed.cpp 67 1 win32_test of witch the last one is the most important, i think. can any one help me please to solve this problem ? I'm compiling in VS 2010 on an Windows system and my GRE_HOME is pointed to xulrunner-sdk/bin. Thanks. _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding