Register for your free account! | Forgot your password?

You last visited: Today at 17:32

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


WndControl.Cpp Errors

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2016
Posts: 9
Received Thanks: 0
WndControl.Cpp Errors

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

------ Second Code -----

//m_dwListBoxStyle = dwListBoxStyle;
CWndBase::Create( dwListBoxStyle | WBS_CHILD, rect, pParentWnd, nID );
}
void CWndListBox::LoadListBoxScript(LPCTSTR lpFileName)
{
CScanner scanner;
if(scanner.Load(lpFileName) == FALSE)
return;
scanner.GetToken(); // keyword
do {
InterpriteScript(scanner,m_listItemArray);
scanner.GetToken(); // keyword
} while(scanner.tok != FINISHED);

}
void CWndListBox::InterpriteScript(CScanner& scanner,CPtrArray& ptrArray)
{
do {
LPLISTITEM lpListItem = new LISTITEM;
lpListItem->m_strWord = scanner.Token;
ptrArray.Add(lpListItem);
scanner.GetToken();
} while(*scanner.token != '}' && scanner.tok != FINISHED);
if(scanner.tok == FINISHED)
return;
scanner.GetToken();
}
void CWndListBox::OnInitialUpdate()
{
CRect rect = GetWindowRect();

m_wndScrollBar.Create( WBS_DOCKING | WBS_VERT, rect, this, 1000 );
m_wndScrollBar.SetVisible( IsWndStyle( WBS_VSCROLL ) );
}
void CWndListBox::OnDraw(C2DRender* p2DRender)
{
CWndBase* pWnd = GetParentWnd();
#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
m_nFontHeight = GetFontHeight() + m_nLineSpace;
{
CPoint pt(3,3);
pt.y -= m_nFontHeight * m_wndScrollBar.GetScrollPos();
PaintListBox(p2DRender,pt,m_listItemArray);

int nPage = GetClientRect().Height() / m_nFontHeight;
int nRange = m_listItemArray.GetSize();
if( IsWndStyle( WBS_VSCROLL ) )
{
m_wndScrollBar.SetVisible( TRUE );
m_wndScrollBar.SetScrollRange( 0, nRange );
m_wndScrollBar.SetScrollPage( nPage );
}
else
m_wndScrollBar.SetVisible( FALSE );
}
}

void CWndListBox::PaintListBox(C2DRender* p2DRender,CPoint& pt,CPtrArray& ptrArray)
{
LPLISTITEM pListItem;
for(int i = 0; i < ptrArray.GetSize(); i++)
{
pListItem = (LPLISTITEM)ptrArray.GetAt(i);
#if __VER >= 15 // __IMPROVE_QUEST_INTERFACE
if( pListItem->m_bIsVisible == FALSE )
continue;

int nScrollBarWidth = IsWndStyle( WBS_VSCROLL ) ? m_wndScrollBar.GetClientRect().Width() : 0;
CSize size = p2DRender->m_pFont->GetTextExtent_EditString( pListItem->m_strWord );
pListItem->m_rect.left = pt.x;
pListItem->m_rect.top = pt.y;
pListItem->m_rect.right = pt.x + m_rectWindow.Width() - nScrollBarWidth;
pListItem->m_rect.bottom = pt.y + m_nFontHeight;
if( pListItem->m_bIsValid == TRUE )
{
if( i == m_nCurSelect )
pListItem->m_strWord.SetColor( m_nSelectColor );
else
{
CPoint point = GetMousePoint();
if( pListItem->m_rect.PtInRect( point ) == TRUE )
pListItem->m_strWord.SetColor( m_dwOnMouseColor );
else
pListItem->m_strWord.SetColor( m_nFontColor );
}
}
else
pListItem->m_strWord.SetColor( m_dwInvalidColor );
p2DRender->TextOut_EditString( m_nLeftMargin + pt.x, pt.y, pListItem->m_strWord );
pt.y += m_nFontHeight;
#else // __IMPROVE_QUEST_INTERFACE

Errors :

c:\Users\wiki\fly\steo\flyffsource\Source\_Interfa ce\WndControl.cpp(4886) : error C2653: 'IRALog' : is not a class or namespace name
c:\Users\wiki\fly\steo\flyffsource\Source\_Interfa ce\WndControl.cpp(4886) : error C2227: left of '->Debug' must point to class/struct/union
type is ''unknown-type''
c:\Users\wiki\fly\steo\flyffsource\Source\_Interfa ce\WndControl.cpp(4886) : error C3861: 'GetInstance': identifier not found, even with argument-dependent lookup



kimba2015 is offline  
Old 08/10/2016, 10:20   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 359
Received Thanks: 523
use code bb tags pls or just kill yourself

look in src u grabbed from for IRALog or some bs you niglet.


Avalion is offline  
Closed Thread



« lord System problem | Erro log Client »

Similar Threads
Errors :(
08/20/2014 - Flyff PServer - Discussions / Questions - 4 Replies
i observing my server and after 24hrs my server got crash how to fix this :'( :handsdown: Error logs: 2014/08/07 16:56:11 query:uspLoggingTrade @pFlag=2, @pTradeID=1407401761, @pserverindex='01', @pidPlayer='0000118', @pItemIndex='22298',...
Some Errors
08/06/2014 - CO2 PServer - Discussions / Questions - 4 Replies
So i have been working with redux 2.91 and i have come into some errors just wondering if anyone has had any similar problems and might be able to shed some light on the situation i was in the process of converting the moonbox quest from...
v19 Errors
10/25/2013 - Flyff PServer - Discussions / Questions - 2 Replies
Hellow Annyone Know How to Fix This Error :( Help us ! http://prntscr.com/1zmmmv Screenshot by Lightshot
[Guide] 2 Fixes on Sro-Errors (no bot-errors)
03/04/2011 - SRO Guides & Templates - 5 Replies
Hey guys, here are 2 fixes for silkroad-errors (not bot-errors!). I know they dont appear for many people but some guys have problems with it. 1st Fix: "Server is undergoing inspection..." Why does this error appear? Because Joymax has some...
some errors
04/29/2009 - Dekaron Private Server - 20 Replies
some errors http://img253.imageshack.us/img253/763/firsterrorc.th.jpg http://img253.imageshack.us/img253/9416/seconderrorf.th.jpg sx6 my errors are diferent --'



All times are GMT +2. The time now is 17:32.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.