Quantcast
Channel: elitepvpers
Viewing all articles
Browse latest Browse all 31872

WndControl.Cpp Errors

$
0
0
The Code : (WNDCONTROL.CPP) , adding __WIKI

// WndBase.cpp: implementation of the CWndBase class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "defineSound.h"
#include "defineText.h"
#include "AppDefine.h" // ¿©±â¼* ÀÌ°É ¿Ö includeÇÏÁö?
#include "clipboard.h"
// °æ°í!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!
// ÀÌ Å¬·¹½º´Â ±âº» À©µµ º£À̽º ÄÜÅä·ÑÀÌ´Ù. ÀÌ ÄÜÆ®·ÑÀ» °³Á¶Çϱâ À§ÇØ ¸ÅÀÎÇÁ·¹ÀÓÀÇ Æã¼ÇÀ» ºÎ¸¥´Ù°Å³ª
// ¾ÖÇ÷§ ´ÜÀ§¿¡ Á¢±ÙÀ» ½ÃµµÇÏ´Â ÇàÀ§´Â ¾ö°ÝÈ÷ ±ÝÁöÇÔ!!! ÀÌ¹Ì ¸îºÎºÐ ±×·¯ÇÑ Çà°¢ÀÌ ¹ß»ýÇßÀ¸¹Ç·Î
// ÀÛ¼ºÀÚ´Â ¼öÁ¤Çϱ⠹ٶ÷!!!! ±âº» À©µµ ÄÚµù¿¡¼* À©µµÀÇ ÄÜÆ®·Ñ ¹Ú½º³ª ¸®½ºÆ® ¹Ú½º°¡ ¸¾¿¡ ¾Èµç´Ù°í
// API ÀÚü¸¦ ¼öÁ¤ÇÏ´Â ÇàÀ§´Â ºÒ°¡´ÉÇÏ´Ù. À©µµ¿¡¼*´Â Äݹé, ÈÅ. ¿À¹ö¶óÀÌµå °°Àº ¹æ½ÄÀ¸·Î ±â´É¿¡ º¯ÇüÀ» °¡ÇÑ´Ù.
// ¿©±â¼*´Â Ŭ·¹½º¸¦ °è½Â¹Þ¾Æ ¿À¹ö¶óÀ̵åÇÏ¿© ÀçÀÛ¼ºÇÏ´Â ¹æ¹ýÀÌ Àû´çÇÏ´Ù.

#if __VER >= 15 // __GUILD_HOUSE
#include "GuildHouse.h"
#include "WndGuildHouse.h"
#endif

#ifdef __WIKI
#include "WndWiki.h"
#endif

#define EDIT_HEIGHT 8
#define VSCROLL_WIDTH 16

#ifdef __WIKI
if( pWnd->GetWndId() == APP_WIKI )
{
CWndWiki *pWndWiki = (CWndWiki*)pWnd;
m_nFontHeight = 40;
CPoint pt(10,3);

vector<ItemProp*> *pVecItems = pWndWiki->GetItemList();
CRect rectClient = GetClientRect();

int nPage = rectClient.Height() / m_nFontHeight;
m_wndScrollBar.SetScrollRange( 0, pVecItems->size() );
m_wndScrollBar.SetScrollPage( nPage );

for( unsigned i = (unsigned)m_wndScrollBar.GetScrollPos(); i < (unsigned)(pVecItems->size()); ++i )
{
if( i > (unsigned)(nPage + m_wndScrollBar.GetScrollPos()) )
break;
ItemProp *pProp = pVecItems->at(i);
CString strBuf;

p2DRender->RenderLine(CPoint(-2,pt.y+37),CPoint(rectClient.right,pt.y+37),0xFF77 6655);
if( i == m_nCurSelect )
{
CRect DrawRect = CRect(0,pt.y-2,rectClient.right,pt.y+36);
p2DRender->RenderFillRect(DrawRect,0xFF022202);
p2DRender->RenderRect(DrawRect,0xFF077707);
}
if( strlen( pProp->szIcon) )
{
CTexture *pIcon = CWndBase::m_textureMng.AddTexture(p2DRender->m_pd3dDevice, MakePath(DIR_ITEM,pProp->szIcon),0xffff00ff);
pIcon->Render(p2DRender,pt);
}
CRect rectToolTip(pt.x,pt.y,pt.x+35,pt.y+35);
if( rectToolTip.PtInRect(m_ptMouse) )
{
CPoint pt2 = m_ptMouse;
ClientToScreen(&pt2);
ClientToScreen(&rectToolTip);
CItemElem Item;
Item.m_dwItemId = pProp->dwID;
g_WndMng.PutToolTip_Item(&Item,pt2,&rectToolTip,AP P_WIKI);
}
pt.x += 40;
pt.y += 10;
p2DRender->TextOut(pt.x,pt.y,pProp->szName);
pt.x += 250;
if( pProp->dwItemJob < MAX_JOB )
p2DRender->TextOut(pt.x,pt.y,prj.m_aJob[pProp->dwItemJob].szName);
pt.x += 150;
int nLevel = (pProp->dwLimitLevel1 == NULL_ID ? 1 : pProp->dwLimitLevel1);
strBuf.Format("%d",nLevel);
p2DRender->TextOut(pt.x,pt.y,strBuf);
pt.x = 10;
pt.y += m_nFontHeight - 10;
}
}else
#endif // __WIKI

Errors :

c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(30) : error C2059: syntax error : 'if'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(31) : error C2143: syntax error : missing ';' before '{'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(31) : error C2447: '{' : missing function header (old-style formal list?)
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(85) : error C2059: syntax error : 'else'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(93) : error C2501: 'm_dwColor' : missing storage-class or type specifiers
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(94) : error C2501: 'm_strTexture' : missing storage-class or type specifiers
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(94) : error C2440: 'initializing' : cannot convert from 'const char [19]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(95) : error C2501: 'm_bTile' : missing storage-class or type specifiers
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(97) : error C2059: syntax error : '}'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(97) : error C2143: syntax error : missing ';' before '}'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(97) : error C2059: syntax error : '}'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(99) : error C2143: syntax error : missing ';' before '{'
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(99) : error C2447: '{' : missing function header (old-style formal list?)
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(4891) : error C2653: 'IRALog' : is not a class or namespace name
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(4891) : error C2227: left of '->Debug' must point to class/struct/union
type is ''unknown-type''
c:\Users\flyff\secr\steo\flyffsource\Source\_Inter face\WndControl.cpp(4891) : error C3861: 'GetInstance': identifier not found, even with argument-dependent lookup

Viewing all articles
Browse latest Browse all 31872

Trending Articles