Quote:
Originally Posted by jayjei14
cause of crash -> WndCrafting::OnInitialUpdate()
so make it sure that all WIDC_****** are on Resdata.inc and .h
so that it would not crash when you open the app of Crafting.
if you can't well show us the whole code of this function: WndCrafting::OnInitialUpdate()
|
yes i check it already it's have all WIDC_
here is a function
PHP Code:
void CWndCrafting::OnInitialUpdate()
{
CWndNeuz::OnInitialUpdate();
RestoreDeviceObjects();
m_texGauEmptyNormal.LoadTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "ColoGauge01.bmp" ), 0xffff00ff, TRUE );
CWndButton* pButton1 = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
CWndCustom* pWndCustom = (CWndCustom*)GetDlgItem(WIDC_PC_DELAY);
pWndCustom->SetTitle( "" );
CWndStatic* pFortschritt = (CWndStatic*)GetDlgItem(WIDC_STATIC4);
pFortschritt->SetTitle("Fortschritt");
CWndStatic* pItem1 = (CWndStatic*)GetDlgItem(WIDC_STATIC9);
pItem1->SetTitle("Item 1");
CWndStatic* pItem2 = (CWndStatic*)GetDlgItem(WIDC_STATIC6);
pItem2->SetTitle("Item 2");
CWndStatic* pItem3 = (CWndStatic*)GetDlgItem(WIDC_STATIC7);
pItem3->SetTitle("Item 3");
CWndStatic* pCostumText = (CWndStatic*)GetDlgItem(WIDC_STATIC8);
pCostumText->SetTitle("Viel Glck");
CWndListBox *pListBox1 = (CWndListBox*)GetDlgItem(WIDC_LISTBOX1);
pButton1->EnableWindow(FALSE);
CScript s;
CString str = "";
s.Load( MakePath( DIR_CLIENT, "ItemCrafting.txt.txt" ) );
s.GetToken();
while( s.tok != FINISHED )
{
if(!strcmp(s.Token, "|"))
{
pListBox1->AddString(str);
str = "";
}
else
str.Append(s.Token);
s.GetToken();
}
}