Problem Exchange_adv/chip_playershop and __extended_currency

11/29/2014 23:40 LoscArmy#1
Hi,
I try to pet in my server the __exchange_adv/ the __chip_shopplayer and __EXTENDED_CURRENCY, but i have 1 error:

Code:
C:\Users\Official Source\_Common\ExchangeAdv.cpp(192): error C2039: 'GetItemCount' : is not a member of 'CItemContainer<T>'
        with
        [
            T=CItemElem
        ]
C:\Users\Official Source\_Common\ExchangeAdv.cpp(313): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(315): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(317): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(321): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(322): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(464): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(464): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(464): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(465): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(465): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(467): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(467): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(467): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(471): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(471): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(472): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(472): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(474): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
C:\Users\Official Source\_Common\ExchangeAdv.cpp(474): error C2248: 'CWndListBox::m_wndScrollBar' : cannot access protected member declared in class 'CWndListBox'
        ..\_Interface\WndControl.h(745) : see declaration of 'CWndListBox::m_wndScrollBar'
        ..\_Interface\WndControl.h(714) : see declaration of 'CWndListBox'
Do u know how fix it pls?
11/30/2014 14:14 raventh1984#2
This->cannot access protected member declared in class 'CWndListBox'

It cant access an protected member. Its simple go to the class CWndListBox and
change protected to public
11/30/2014 16:09 LoscArmy#3
Thks soo much guy, it's now fixed, and i have fix the Dpsrvr error :), Thks :)!!

Resolved.

Do u know how fix this warning pls:
04/04/2016 07:36 randeljohnvalencia#4
remove

Fixed :)
06/23/2016 00:39 Starsky85#5
hi ich habe hier gerade den treath gefunden und habe leider das selbe problem

was muss ich da machen das der fehler weggeht kann mir das jemand sagen wäre sehr dankbar :)



was er meint verstehe ich nicht so ganz
Quote:
This->cannot access protected member declared in class 'CWndListBox'

It cant access an protected member. Its simple go to the class CWndListBox and
change protected to public
weil bei mir steht kein protected
06/25/2016 02:51 Lumi#6
Quote:
Originally Posted by Starsky85 View Post
hi ich habe hier gerade den treath gefunden und habe leider das selbe problem

was muss ich da machen das der fehler weggeht kann mir das jemand sagen wäre sehr dankbar :)



was er meint verstehe ich nicht so ganz


weil bei mir steht kein protected
Du solltest auch nicht nach protected suchen, sondern die Funktion in der Klasse CWndListBox. Die Funktion solltest du dann in den public-Bereich verschieben. So habe ich das verstanden.
06/25/2016 02:53 Starsky85#7
na läuft nun alles soweit bis auf das die items nicht getauscht werden und nicht mal eine meldung kommt oder so -.- das fenster die items die anzahl wird mir aber alles angezeigt aber ich finde nicht woran das liegt