[Request]APP_CRAFTING Resdata.inc

08/29/2014 12:40 Sedrika#16
Wich source are you using?
08/29/2014 12:45 banktakung#17
Quote:
Originally Posted by Sedrika View Post
Wich source are you using?

I'm rip from Virture and i try to use there resource for crafting as well.
08/29/2014 14:30 Rhyder`#18
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()
08/29/2014 16:13 banktakung#19
Quote:
Originally Posted by jayjei14 View Post
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.LoadTexturem_pApp->m_pd3dDeviceMakePathDIR_THEME"ColoGauge01.bmp" ), 0xffff00ffTRUE );

    
CWndButtonpButton1 = (CWndButton*)GetDlgItem(WIDC_BUTTON1);
    
CWndCustompWndCustom = (CWndCustom*)GetDlgItem(WIDC_PC_DELAY);
    
pWndCustom->SetTitle"" );

    
CWndStaticpFortschritt = (CWndStatic*)GetDlgItem(WIDC_STATIC4);
    
pFortschritt->SetTitle("Fortschritt");

    
CWndStaticpItem1 = (CWndStatic*)GetDlgItem(WIDC_STATIC9);
    
pItem1->SetTitle("Item 1");

    
CWndStaticpItem2 = (CWndStatic*)GetDlgItem(WIDC_STATIC6);
    
pItem2->SetTitle("Item 2");

    
CWndStaticpItem3 = (CWndStatic*)GetDlgItem(WIDC_STATIC7);
    
pItem3->SetTitle("Item 3");

    
CWndStaticpCostumText = (CWndStatic*)GetDlgItem(WIDC_STATIC8);
    
pCostumText->SetTitle("Viel Glck");

    
CWndListBox *pListBox1 = (CWndListBox*)GetDlgItem(WIDC_LISTBOX1);
    
pButton1->EnableWindow(FALSE);

    
CScript    s;
    
CString str "";
    
s.LoadMakePathDIR_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();
    }