Hi all, I was using nsEmbedString in my embedding project(JRex), It was working fine (Mozilla 1.4 to Mozilla 1.7) until new String changes after Mozilla 1.7rc1. Can any one tell me what is the migration steps i should follow. Any pointer would be of great help.
FYI :- I am including "nsEmbedString.h" and XPCOM_GLUE=1 {I can use ns?AutoString instead os nsEmbed?String but the new String change document does not recommed it.} I get the following error of redefinition 'nsAString' and 'nsACString' [exec] ../../../../dist/include/string\nsTAString.h(104) : error C2011: 'nsAString' : 'class' type redefinition [exec] ../../../../dist/include/string\nsTAString.h(484) : error C2039: 'Equals' : is not a member of 'nsAString' [exec] ../../../../dist/include/string\nsStringAPI.h(640) : see declaration of 'nsAString' [exec] ../../../../dist/include/string\nsTAString.h(502) : error C2039: 'Equals' : is not a member of 'nsAString' [exec] ../../../../dist/include/string\nsStringAPI.h(640) : see declaration of 'nsAString' [exec] ../../../../dist/include/string\nsTAString.h(104) : error C2011: 'nsACString' : 'class' type redefinition [exec] ../../../../dist/include/string\nsTAString.h(484) : error C2039: 'Equals' : is not a member of 'nsACString' [exec] ../../../../dist/include/string\nsStringAPI.h(722) : see declaration of 'nsACString' [exec] ../../../../dist/include/string\nsTAString.h(502) : error C2039: 'Equals' : is not a member of 'nsACString' [exec] ../../../../dist/include/string\nsStringAPI.h(722) : see declaration of 'nsACString' [exec] ../../../../dist/include/string\nsTSubstring.h(78) : error C2143: syntax error : missing ';' before '&' [exec] ../../../../dist/include/string\nsTSubstring.h(78) : error C2501: 'const_iterator' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(78) : error C2061: syntax error : identifier 'const_iterator' [exec] ../../../../dist/include/string\nsTSubstring.h(79) : error C2501: 'BeginReading' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(79) : error C2556: 'int &__thiscall nsSubstring::BeginReading(void) const' : overloaded function differs only by return type from 'const unsigned short *__thiscall nsSubstring::BeginReading(void) const' [exec] ../../../../dist/include/string\nsTSubstring.h(71) : see declaration of 'BeginReading' [exec] ../../../../dist/include/string\nsTSubstring.h(79) : error C2372: 'BeginReading' : redefinition; different types of indirection [exec] ../../../../dist/include/string\nsTSubstring.h(71) : see declaration of 'BeginReading' [exec] ../../../../dist/include/string\nsTSubstring.h(79) : warning C4183: 'BeginReading':member function definition looks like a ctor, but name does not match enclosing class [exec] ../../../../dist/include/string\nsTSubstring.h(80) : error C2143: syntax error : missing ';' before '.' [exec] ../../../../dist/include/string\nsTSubstring.h(80) : error C2501: 'iter' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(80) : error C2059: syntax error : '.' [exec] ../../../../dist/include/string\nsTSubstring.h(80) : error C2238: unexpected token(s) preceding ';' [exec] ../../../../dist/include/string\nsTSubstring.h(81) : error C2143: syntax error : missing ';' before '.' [exec] ../../../../dist/include/string\nsTSubstring.h(81) : error C2501: 'iter' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(81) : error C2059: syntax error : '.' [exec] ../../../../dist/include/string\nsTSubstring.h(81) : error C2238: unexpected token(s) preceding ';' [exec] ../../../../dist/include/string\nsTSubstring.h(82) : error C2143: syntax error : missing ';' before '.' [exec] ../../../../dist/include/string\nsTSubstring.h(82) : error C2501: 'iter' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(82) : error C2059: syntax error : '.' [exec] ../../../../dist/include/string\nsTSubstring.h(82) : error C2238: unexpected token(s) preceding ';' [exec] ../../../../dist/include/string\nsTSubstring.h(83) : error C2059: syntax error : 'return' [exec] ../../../../dist/include/string\nsTSubstring.h(83) : error C2238: unexpected token(s) preceding ';' [exec] ../../../../dist/include/string\nsTSubstring.h(86) : error C2143: syntax error : missing ';' before '&' [exec] ../../../../dist/include/string\nsTSubstring.h(86) : error C2061: syntax error : identifier 'const_iterator' [exec] ../../../../dist/include/string\nsTSubstring.h(87) : error C2270: 'EndReading' : modifiers not allowed on nonmember functions [exec] ../../../../dist/include/string\nsTSubstring.h(87) : error C2501: 'EndReading' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(88) : error C2065: 'iter' : undeclared identifier [exec] ../../../../dist/include/string\nsTSubstring.h(88) : error C2228: left of '.mStart'must have class/struct/union type [exec] ../../../../dist/include/string\nsTSubstring.h(88) : error C2065: 'mData' : undeclared identifier [exec] ../../../../dist/include/string\nsTSubstring.h(89) : error C2228: left of '.mEnd' must have class/struct/union type [exec] ../../../../dist/include/string\nsTSubstring.h(89) : error C2065: 'mLength' : undeclared identifier [exec] ../../../../dist/include/string\nsTSubstring.h(90) : error C2228: left of '.mPosition' must have class/struct/union type [exec] ../../../../dist/include/string\nsTSubstring.h(90) : error C2228: left of '.mEnd' must have class/struct/union type [exec] ../../../../dist/include/string\nsTSubstring.h(94) : error C2143: syntax error : missing ';' before '&' [exec] ../../../../dist/include/string\nsTSubstring.h(94) : error C2501: 'const_char_iterator' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(94) : error C2061: syntax error : identifier 'const_char_iterator' [exec] ../../../../dist/include/string\nsTSubstring.h(95) : error C2270: 'BeginReading' : modifiers not allowed on nonmember functions [exec] ../../../../dist/include/string\nsTSubstring.h(95) : error C2501: 'BeginReading' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(99) : error C2143: syntax error : missing ';' before '&' [exec] ../../../../dist/include/string\nsTSubstring.h(99) : error C2501: 'const_char_iterator' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(99) : error C2086: 'const_char_iterator' : redefinition [exec] ../../../../dist/include/string\nsTSubstring.h(99) : error C2061: syntax error : identifier 'const_char_iterator' [exec] ../../../../dist/include/string\nsTSubstring.h(100) : error C2270: 'EndReading' : modifiers not allowed on nonmember functions [exec] ../../../../dist/include/string\nsTSubstring.h(100) : error C2501: 'EndReading' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(109) : error C2146: syntax error : missing ';' before identifier 'BeginWriting' [exec] ../../../../dist/include/string\nsTSubstring.h(109) : error C2501: 'char_iterator' : missing storage-class or type specifiers [exec] ../../../../dist/include/string\nsTSubstring.h(109) : fatal error C1004: unexpectedend of file found [exec] make[2]: *** [JRexDirectoryServiceProviderImpl.obj] Error 2 [exec] make[2]: Leaving directory `/cygdrive/c/work/moz17/mozilla/embedding/JRex/src/native' [exec] make[1]: Leaving directory `/cygdrive/c/work/moz17/mozilla/embedding/JRex' [exec] make[1]: *** [libs] Error 2 [exec] make: *** [all] Error 2 [exec] Result: 2 Thanks +Medappa _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding