Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 19:47

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

Advertisement



Class redefinition error

Discussion on Class redefinition error within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
ThoughtfulDev's Avatar
 
elite*gold: 28
Join Date: Aug 2012
Posts: 2,335
Received Thanks: 471
Class redefinition error

hallo leute ich habe diesen error:
e:\DRC\Source_Files\Source\Source\_Interface\WndSh op.h(300): error C2011: 'CWndGlowShop' : 'class' type redefinition


nur leide ist CWndGlowShop nur einmal in der neuz drinne und nicht 2mal bzw mehrfach deshalb versteh ich nicht wieso ich einen redefinition error bekomme...

WndShop.h ausschnitt
Code:
#ifdef __PMA_GLOW_COL
class CWndGlowShop : public CWndNeuz 
{ 
public:
	CTexture         m_Texture;
	CWndConfirmSell* m_pWndConfirmSell;
	CModelObject*	 m_pModel;

	BOOL			 m_bLButtonClick;
	CRect			 m_ColorRect[3];
	FLOAT			 m_fColor[3];
	int				 m_nGlowColorCost;

	CPoint			 m_ColorScrollBar[3];
	CPoint			 m_OriginalColorScrollBar[3];
	
#ifdef __Y_BEAUTY_SHOP_CHARGE
	BOOL			 m_bChange;
#endif //__Y_BEAUTY_SHOP_CHARGE

	int				 m_ChoiceBar;
	
	
public: 
	CWndGlowShop(); 
	~CWndGlowShop(); 
	void    ReSetBar( FLOAT r, FLOAT g, FLOAT b );

	virtual HRESULT RestoreDeviceObjects();
	virtual HRESULT InvalidateDeviceObjects();
	virtual HRESULT DeleteDeviceObjects();
	
	virtual void OnMouseWndSurface( CPoint point );
	virtual BOOL Initialize( CWndBase* pWndParent = NULL, DWORD nType = MB_OK ); 
	virtual BOOL OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ); 
	virtual void OnDraw( C2DRender* p2DRender ); 
	virtual	void OnInitialUpdate(); 
	virtual BOOL OnCommand( UINT nID, DWORD dwMessage, CWndBase* pWndBase ); 
	virtual void OnSize( UINT nType, int cx, int cy ); 
	virtual void OnLButtonUp( UINT nFlags, CPoint point ); 
	virtual void OnLButtonDown( UINT nFlags, CPoint point ); 
	virtual	void OnDestroy( void );

	void UpdateModels();

}; 
#endif //__PMA_GLOW_COL
hoffe auf hilfe...
ThoughtfulDev is offline  
Thanks
1 User
Old 11/10/2012, 10:27   #2
 
aldimaster's Avatar
 
elite*gold: 122
Join Date: Mar 2008
Posts: 796
Received Thanks: 475
Der Fehler kann ebenfalls auftreten wenn du die selbe Headerdatei mehrmals inkludierst.
Wenn du dein #include in der Stdafx.h stehen hast, dann reicht das vollkommen aus.

Greetz
aldimaster is offline  
Old 11/10/2012, 12:14   #3
 
ThoughtfulDev's Avatar
 
elite*gold: 28
Join Date: Aug 2012
Posts: 2,335
Received Thanks: 471
erstmal danke aldi

aber das problem ist ja mach ich kommentiere ich __PMA_GLOW_COL aus compilt die datei bzw die neuz.. und wie kann ich herausfinden ob die datei 2x oder mehrfach includiert wurde?
ThoughtfulDev is offline  
Old 11/10/2012, 12:42   #4
 
aldimaster's Avatar
 
elite*gold: 122
Join Date: Mar 2008
Posts: 796
Received Thanks: 475
Indem du überprüfst ob du an mehreren stellen #include "deine datei.h" stehen hast ?
Schau ebenfalls noch ob du in deiner Header Datei include guards hast.
Sprich:
PHP Code:
#ifndef HEADERFILE_H
#define HEADERFILE_H

// Header Definitions....


#endif //HEADERFILE_H 

Greetz
aldimaster is offline  
Reply


Similar Threads Similar Threads
Class sro loader error
01/14/2012 - SRO Private Server - 5 Replies
hello. class sro version is 1.200. im used securty remover. http://img703.imageshack.us/img703/6182/adsznsa.jp g Uploaded with ImageShack.us Please help me
Minecraft-Error (Couldn't load main class)
10/27/2011 - Minecraft - 3 Replies
Hey. Ich hab von einem Freund das Spiel "Minecraft" geschickt bekommen und wollte es gerne einmal ausprobieren. Doch immer wenn ich es öffne kommt: Error: Couldn't load main class. Wie kann ich Minecraft spielen? Was kann ich machen? Danke im Voraus ;)
[HELP] this error public class HouseItem
04/21/2010 - CO2 Programming - 5 Replies
someone can help me? i have this error public class HouseItem { public static Hashtable FurnitureOwner = new Hashtable(); public static Hashtable ItemBoxOwner = new Hashtable(); public static Hashtable ItemBoxBase = new Hashtable(); the error about, Error 1 The type or namespace name 'Hashtable' could not be found (are you missing a using directive or an assembly reference?) C:\OldCODB\antuco_server\Game\NPC.cs 1 38 23 NewestCOServer



All times are GMT +1. The time now is 19:48.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.