Register for your free account! | Forgot your password?

You last visited: Today at 06:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Wiki System

Discussion on Wiki System within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 355
Received Thanks: 5
Wiki System

I need a help while adding Wiki System I got an error regarding to CWndComboBox

here's my error

Error C2039 'GetSelectedItemData': is not a member of 'CWndComboBox'

Error line in WndWiki.cpp
Code:
void CWndWiki::UpdateList()
{
	const static DWORD dwItems [] = { II_SYS_SYS_SCR_PERIN };
	DWORD dwJob = m_pComboJob->GetSelectedItemData();
	DWORD dwFilter = m_pComboKind->GetSelectedItemData();
	CString strFilter = m_pEditFilter->GetString();
#Closerequest thanks
khemomo is offline  
Old 06/08/2018, 14:55   #2
 
elite*gold: 0
Join Date: Jul 2017
Posts: 239
Received Thanks: 8
Search the “CWndComboBox” and make the GetSelecledItenData be on the group. Or in the code.
nicksss03 is offline  
Old 06/08/2018, 15:14   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 355
Received Thanks: 5
Quote:
Originally Posted by nicksss03 View Post
Search the “CWndComboBox” and make the GetSelecledItenData be on the group. Or in the code.
I tried to search "GetSelectedItemData" in the file we're i copied the wiki I got the same input of "GetSelectedItemData" in my source.

And i think its being added base on this code but it is being define inside the improve map system

Code:
#ifdef __IMPROVE_MAP_SYSTEM
DWORD CWndComboBox::GetSelectedItemData( void ) const
{
	int nSelectedListNumber = m_wndListBox.GetCurSel();
	if( nSelectedListNumber == -1 )
	{
		return 0;
	}
	return m_wndListBox.GetItemData( nSelectedListNumber );
}
void CWndComboBox::GetListBoxText( int nIndex, CString& strString ) const
{
	m_wndListBox.GetText( nIndex, strString );
}
int CWndComboBox::GetListBoxTextLength( int nIndex ) const
{
	return m_wndListBox.GetTextLen( nIndex );
}
int CWndComboBox::GetListBoxSize( void ) const
{
	return m_wndListBox.GetCount();
}
#endif // __IMPROVE_MAP_SYSTEM
khemomo is offline  
Old 06/08/2018, 18:32   #4
 
elite*gold: 0
Join Date: Mar 2018
Posts: 155
Received Thanks: 54
then make it like this:

Code:
DWORD CWndComboBox::GetSelectedItemData( void ) const
{
	int nSelectedListNumber = m_wndListBox.GetCurSel();
	if( nSelectedListNumber == -1 )
	{
		return 0;
	}
	return m_wndListBox.GetItemData( nSelectedListNumber );
}
#ifdef __IMPROVE_MAP_SYSTEM
void CWndComboBox::GetListBoxText( int nIndex, CString& strString ) const
{
	m_wndListBox.GetText( nIndex, strString );
}
int CWndComboBox::GetListBoxTextLength( int nIndex ) const
{
	return m_wndListBox.GetTextLen( nIndex );
}
int CWndComboBox::GetListBoxSize( void ) const
{
	return m_wndListBox.GetCount();
}
#endif // __IMPROVE_MAP_SYSTEM
and then WndControl.h

Code:
	DWORD GetSelectedItemData( void ) const;
#ifdef __IMPROVE_MAP_SYSTEM
	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
Tweeney is offline  
Thanks
1 User
Old 06/08/2018, 21:44   #5
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 10
Or he could just define __IMPROVE_MAP_SYSTEM :|
firesqual is offline  
Reply


Similar Threads Similar Threads
[Private Wiki]Schnelles Wiki für alle
03/26/2015 - Metin2 PServer Advertising - 63 Replies
Heute stelle ich euch mein Projekt "Private Wiki Cloud" vor Für die, die nicht viel lesen wollen direkt einmal ein paar Beispiele: Metin2013 Private Wiki Cloud - Metin2013 Schwarzstahl-Panzer - Metin2013 Sensenmanntruhe - Metin2013 Sensenmann - Metin2013
Wiki: Bearbeitungen in der Wiki geöffnet!
11/27/2011 - Metin2 - 15 Replies
Liebe Spieler! Um euch die Benutzung der Wiki zu vereinfachen, haben wir heute die Bearbeitung für alle User geöffnet. Das heißt, ihr könnt nun die Wiki bearbeiten, ohne euch einen Account anzulegen - einfach nur auf "Bearbeiten" in der jeweiligen Seite klicken! Wir hoffen, dadurch wieder mehr User für die Wiki zu gewinnen und euch die Verwendung zu vereinfachen. :) Dazu sei aber noch gesagt: Wer glaubt, Unsinn treiben zu müssen, indem er Seiten verunstaltet oder falsche Informationen...



All times are GMT +2. The time now is 06:26.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.