标题:我又来了,还是上次的问题,呵呵
取消只看楼主
szjszj
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2009-8-2
结帖率:50%
 问题点数:0 回复次数:0 
我又来了,还是上次的问题,呵呵
错误信息:
ceguifalagardex.lib(FalActionButtonProperties.obj) : error LNK2019:
无法解析的外部符号 "
__declspec(dllimport) public: __thiscall CEGUI::PushButton::PushButton(class CEGUI::PushButton const &)" (__imp_??0PushButton@CEGUI@@QAE@ABV01@@Z),
该符号在函数
"public: __thiscall CEGUI::FalagardButton::FalagardButton(class CEGUI::FalagardButton const &)" (??0FalagardButton@CEGUI@@QAE@ABV01@@Z) 中 被引用
代码有点多,呵呵
CEGUI::PushButton::PushButton类定义
#include "elements/CEGUIPushButton.h"

// Start of CEGUI namespace section
namespace CEGUI
{
// event strings
const String PushButton::EventNamespace("PushButton");
const String PushButton::EventClicked( (utf8*)"Clicked" );
// properties
PushButtonProperties::NormalImage PushButton::d_normalImageProperty;
PushButtonProperties::PushedImage PushButton::d_pushedImageProperty;
PushButtonProperties::HoverImage  PushButton::d_hoverImageProperty;
PushButtonProperties::DisabledImage  PushButton::d_disabledImageProperty;
PushButtonProperties::UseStandardImagery PushButton::d_useStandardImageryProperty;
PushButtonProperties::TextXOffset PushButton::d_textXOffsetProperty;
 
PushButton::PushButton(const String& type, const String& name) :
    ButtonBase(type, name)
{
    // default options
    d_autoscaleImages        = true;
    d_useStandardImagery    = true;
    d_useNormalImage        = false;
    d_useHoverImage            = false;
    d_usePushedImage        = false;
    d_useDisabledImage        = false;
    d_textXOffset = 0.0f;
 
    // add properties for push button class
    addPushButtonProperties();
}
 
PushButton::~PushButton(void)
{
}
 
bool PushButton::isStandardImageryEnabled(void) const
{
    return d_useStandardImagery;
}
 
bool PushButton::isCustomImageryAutoSized(void) const
{
    return d_autoscaleImages;
}
 
const RenderableImage* PushButton::getNormalImage(void) const
{
    return d_useNormalImage ? &d_normalImage : static_cast<const RenderableImage*>(0);
}
 
const RenderableImage* PushButton::getHoverImage(void) const
{
    return d_useHoverImage ? &d_hoverImage : static_cast<const RenderableImage*>(0);
}
 
const RenderableImage* PushButton::getPushedImage(void) const
{
    return d_usePushedImage ? &d_pushedImage : static_cast<const RenderableImage*>(0);
}
 
const RenderableImage* PushButton::getDisabledImage(void) const
{
    return d_useDisabledImage ? &d_disabledImage : static_cast<const RenderableImage*>(0);
}
 
float PushButton::getTextXOffset(void) const
{
    return d_textXOffset;
}
 
void PushButton::setStandardImageryEnabled(bool setting)
{
}
 
void PushButton::setCustomImageryAutoSized(bool setting)
{
     
}
 
void PushButton::setNormalImage(const RenderableImage* image)
{
   
}
 
void PushButton::setHoverImage(const RenderableImage* image)
{
   
}
 
void PushButton::setPushedImage(const RenderableImage* image)
{
}
 
void PushButton::setDisabledImage(const RenderableImage* image)
{
}
 
void PushButton::setTextXOffset(float offset)
{
    d_textXOffset = offset;
}
 
 
void PushButton::onClicked(WindowEventArgs& e)
{
    fireEvent(EventClicked, e, EventNamespace);
}
 
void PushButton::onMouseButtonUp(MouseEventArgs& e)
{
}
 
void PushButton::onSized(WindowEventArgs& e)
{
}
 
void PushButton::resizeWithText()
{
}
 
void PushButton::addPushButtonProperties(void)
{
}
 
} // End of  CEGUI namespace section
 
 
CEGUI::FalagardButton::FalagardButton类定义
#include "FalButton.h"
#include "falagard/CEGUIFalWidgetLookManager.h"
#include "falagard/CEGUIFalWidgetLookFeel.h"
 
// Start of CEGUI namespace section
namespace CEGUI
{
    const utf8 FalagardButton::WidgetTypeName[] = "Falagard/Button";
 
    FalagardButton::FalagardButton(const String& type, const String& name) :
        PushButton(type, name)
    {
    }
 
    FalagardButton::~FalagardButton()
    {
    }
 
    void FalagardButton::drawSelf(float z)
    {
         
    }
 
    void FalagardButton::drawNormal(float z)
    {
 
    }
 
    void FalagardButton::drawHover(float z)
    {
 
    }
 
    void FalagardButton::drawPushed(float z)
    {
 
    }
 
    void FalagardButton::drawDisabled(float z)
    {
 
    }
 
    void FalagardButton::doButtonRender(const String& state)
    {
         
    }
 
    Size FalagardButton::getRenderSize()
    {
     
    }
 
    Window* FalagardButtonFactory::createWindow(const String& name)
    {
        return new FalagardButton(d_type, name);
    }
 
    void FalagardButtonFactory::destroyWindow(Window* window)
    {
        delete window;
    }
 
} // End of  CEGUI namespace section
搜索更多相关主题的帖子: elements include public 信息 
2013-11-04 13:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-423021-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.065335 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved