[mobile-devel] SwordReader - sword svn status

Troy A. Griffitts scribe at crosswire.org
Sat Jul 26 13:03:58 MST 2008


You got me on that one.  This is the error where EVC3 complains about my 
scope qualifier.

Basically, there is a public inner class definition in TreeKey, 
PositionChangeListener.  VerseTreeKey implements this interface.  The 
interface has a method .getTreeKey() which I need to call (ok, so it's 
not technically a pure interface because it does have helper methods 
like .getTreeKey()).  I also have a .getTreeKey() method in 
VerseTreeKey.  I need to provide fully qualified scope to tell which 
method I wish to call.

Originally, I used:

TreeKey::PositionChangeListener::getTreeKey()

EVC3 complained that I was trying to call a static.

So I added 'this'

this->TreeKey::PositionChangedListener::getTreeKey();

Both work in any c++ standards compliant compiler (jab jab)

If we really can't figure out how to specify scope in EVC3, I can change 
the method name, I guess-- which seems really really odd, for example, 
what if you override a method in a derived class and in that method want 
to call your base class impl first, then do some extra processing.  This 
is a very common scenario.  What syntax would you use to specify scope? 
  I'd use Base::myMethod()-- which doesn't seem to make EVC3 happy.

Let me know what you find.

	-Troy.




David Trotz wrote:
> One exception to that. It seems eVC 3 has a problem with the following...
> 
> C:\src\sword\src\keys\versetreekey.cpp(148) : error C2039: 'TreeKey' : 
> is not a member of 'VerseTreeKey'
>         ..\..\..\sword\include\versetreekey.h(39) : see declaration of 
> 'VerseTreeKey'
> C:\src\sword\src\keys\versetreekey.cpp(148) : error C2039: 'TreeKey' : 
> is not a member of 'VerseTreeKey'
>         ..\..\..\sword\include\versetreekey.h(39) : see declaration of 
> 'VerseTreeKey'
> C:\src\sword\src\keys\versetreekey.cpp(148) : error C2653: 'TreeKey' : 
> is not a class or namespace name
> 
> I will try to look into this error more later.
> 
> Troy, feel free to chime in if you have any ideas. =)
> 
> So for now my previous email is only applicable to MSVC 2005 builds.
> 
> --
> In Christ,
> David Trotz
> 
> 
> David Trotz wrote:
>> Guys,
>> The current sword svn compiles and plays well with the current 
>> swordreader svn. I had to make some minor changes to the swordreader svn 
>> to accomodate some of the latest changes in sword svn. So be sure to 
>> grab both at the same time if you plan to do any development this weekend.
>> I will be spending all day on SwordReader, and will release a new CAB 
>> tomorrow night with the latest changes.
>> --
>> In Christ,
>> David Trotz
>>
>> _______________________________________________
>> mobile-devel mailing list
>> mobile-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/mobile-devel
>>   
> 
> 
> _______________________________________________
> mobile-devel mailing list
> mobile-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/mobile-devel




More information about the mobile-devel mailing list