• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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