[mobile-devel] SwordReader - sword svn status

David Trotz dtrotzjr at crosswire.org
Sat Jul 26 13:41:49 MST 2008


Troy,
Thanks for the email. Not sure what to do. MSVC compiles fine but we 
keep eVC 3 builds around for the not so fortunate coders who can't 
afford MSVC 2005 otherwise I would say forget eVC 3 support. BTW I just 
noticed eVC 3 also chokes on VerseMgr.cpp, so its more work to fix than 
I am willing to contribute at the moment. Maybe tomorrow.

I think I am going to set this aside for now.
--
In Christ,
David

Troy A. Griffitts wrote:
> 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
>>     
>
>
> _______________________________________________
> mobile-devel mailing list
> mobile-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/mobile-devel
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/mobile-devel/attachments/20080726/5d3e2338/attachment.html 


More information about the mobile-devel mailing list