Template Errors: PAGE_CONTAINER

  1. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  2. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  3. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  4. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 492:
    491: $headerTabHeight_outer = '';
    492: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    493: $__compilerVar509 .= '
    
  5. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  6. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  7. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  8. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 496:
    495: $uix_fixedNavigationHeight_outer = '';
    496: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    497: $__compilerVar509 .= '
    
  9. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 501:
    500: $uix_tabLinksHeight_outer = '';
    501: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    502: $__compilerVar509 .= '
    
  10. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 501:
    500: $uix_tabLinksHeight_outer = '';
    501: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    502: $__compilerVar509 .= '
    
  11. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  12. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  13. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $uix_tabLinksHeightSticky_outer = '';
    505: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    506: $__compilerVar509 .= '
    
  14. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  15. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  16. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  17. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 510:
    509: $userBar_headerTabHeight_outer = '';
    510: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    511: $__compilerVar509 .= '
    
  18. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  19. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  20. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    
  21. A non-numeric value encountered in /home/admin/web/codeby.net/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $userBar_uix_fixedNavigationHeight_outer = '';
    514: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    515: $__compilerVar509 .= '
    

Текстовый редактор с наследником Cedit

Тема в разделе "MS Visual C++", создана пользователем mahsus, 16 апр 2008.

  1. mahsus

    mahsus Гость

    Репутация:
    0
    Пишу текстовый редактор в VS 2005. Для этого создаю наследника СEdit CMEdit. Создаю функцию
    [codebox]afx_msg BOOL OnUndo();[/codebox]
    Естественно в файле MEdit.cpp пишу
    [codebox]BOOL CMEdit::OnUndo()
    { //отмена
    return CEdit::Undo();
    }[/codebox]
    Все нормально. Для CMEdit будет контексное меню, которое создаю динамически. В нем будет такой пункт как ID_EDIT_UNDO, поэтому в карте пишу
    [codebox]
    BEGIN_MESSAGE_MAP(CMEdit, CEdit)
    ON_COMMAND(ID_EDIT_UNDO, OnUndo)
    END_MESSAGE_MAP()
    [/codebox]
    При компиляции
    j:\...\medit.cpp(41) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CMEdit::* )(void)' to 'AFX_PMSG'
    Хотя, если писать в MSVisual C++6, такой ошибки нет. В чем может быть проблема? Подскажите пожалуйста.
    Заранее благодарен за ответ.
     
  2. European

    Репутация:
    0
    Регистрация:
    4 сен 2006
    Сообщения:
    2.566
    Симпатии:
    2
    Код:
    afx_msg void OnUndo();
     
  3. mahsus

    mahsus Гость

    Репутация:
    0
    почему нельзя сделать чтобы возвращало bool?
     
  4. European

    Репутация:
    0
    Регистрация:
    4 сен 2006
    Сообщения:
    2.566
    Симпатии:
    2
    Можно глупый вопрос? Кому вы хотите возвращать результат? Юзер выбрал пункт меню, MFC вызывает Ваш метод и результат его выполнения фиолетов для MFC. Или Вы собираетесь вызывать этот метод напрямую?
     
  5. mahsus

    mahsus Гость

    Репутация:
    0
    Почему-то в 6 студии все нормально..., но у меня не только на этой функции ошибка...
    Вот такую ошибку дает
    j:\...\medit.cpp(40) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMEdit::* )(void)' to 'void (__thiscall CCmdTarget::* )(UINT)'

    это функция
    afx_msg void OnMenuItemSelect();

    написал макрос так:
    ON_COMMAND_RANGE(STARTFROM, STARTFROM+11, OnMenuItemSelect)

    не знаешь причем тут CCmdTarget и UINT...?
     
  6. European

    Репутация:
    0
    Регистрация:
    4 сен 2006
    Сообщения:
    2.566
    Симпатии:
    2
    Должно быть: afx_msg void OnMenuItemSelect( UINT ID );
    В функцию придет ID выбранного пункта меню
     
  7. mahsus

    mahsus Гость

    Репутация:
    0
    ТОЧНО! Большое спасибо за ответ!
     
Загрузка...

Поделиться этой страницей