Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Item Wiki CWndComboBox

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
Little Help here please can anyone knows how to fix this?

 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
I'm going to assume this is being added to a V15.

In WndControl.h

Find:
Code:
#ifdef __IMPROVE_MAP_SYSTEM
	DWORD GetSelectedItemData( void ) const;
	void GetListBoxText( int nIndex, CString& strString ) const;
	int GetListBoxTextLength( int nIndex ) const;
	int GetListBoxSize( void ) const;
#else // __IMPROVE_MAP_SYSTEM
	int GetLBText(int nIndex, LPTSTR lpszText) const;
	void GetLBText(int nIndex, CString& rString) const;
	int GetLBTextLen(int nIndex) const;
#endif // __IMPROVE_MAP_SYSTEM

Replace With:
Code:
	DWORD GetSelectedItemData( void ) const;
	void GetListBoxText( int nIndex, CString& strString ) const;
	int GetListBoxTextLength( int nIndex ) const;
	int GetListBoxSize( void ) const;
	int GetLBText(int nIndex, LPTSTR lpszText) const;
	void GetLBText(int nIndex, CString& rString) const;
	int GetLBTextLen(int nIndex) const;

Compile and it should be fine.
 
Upvote 0
Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
I'm going to assume this is being added to a V15.

In WndControl.h

Find:
Code:
#ifdef __IMPROVE_MAP_SYSTEM
    DWORD GetSelectedItemData( void ) const;
    void GetListBoxText( int nIndex, CString& strString ) const;
    int GetListBoxTextLength( int nIndex ) const;
    int GetListBoxSize( void ) const;
#else // __IMPROVE_MAP_SYSTEM
    int GetLBText(int nIndex, LPTSTR lpszText) const;
    void GetLBText(int nIndex, CString& rString) const;
    int GetLBTextLen(int nIndex) const;
#endif // __IMPROVE_MAP_SYSTEM

Replace With:
Code:
    DWORD GetSelectedItemData( void ) const;
    void GetListBoxText( int nIndex, CString& strString ) const;
    int GetListBoxTextLength( int nIndex ) const;
    int GetListBoxSize( void ) const;
    int GetLBText(int nIndex, LPTSTR lpszText) const;
    void GetLBText(int nIndex, CString& rString) const;
    int GetLBTextLen(int nIndex) const;

Compile and it should be fine.


Yes sir you're right it's v15 clean files BTW Thank you! :kiss:



I got a follow up question with this replacement. If i remove __IMPROVE_MAP_SYSTEM is there any chance to got an errors in the long run?
 
Upvote 0
Status
Not open for further replies.
Back
Top