TeePro 2011 & BCB 6: new TChart component
Posted: Wed Sep 07, 2011 10:22 am
Hi,
I tried to make new TChart component using standard BCB 6 tools (New component, ancestor type TChart, and so on). I get unit Chart1:
and correspondingly
Nothing special, empty new component, just to check. But after compilation I have the linker error:
I tried to make new TChart component using standard BCB 6 tools (New component, ancestor type TChart, and so on). I get unit Chart1:
Code: Select all
#ifndef Chart1H
#define Chart1H
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Chart.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <TeEngine.hpp>
#include <TeeProcs.hpp>
//---------------------------------------------------------------------------
class PACKAGE TChart1 : public TChart
{
private:
protected:
public:
__fastcall TChart1(TComponent* Owner);
__published:
};
//---------------------------------------------------------------------------
#endif
Code: Select all
#pragma hdrstop
#include "Chart1.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//
static inline void ValidCtrCheck(TChart1 *)
{
new TChart1(NULL);
}
//---------------------------------------------------------------------------
__fastcall TChart1::TChart1(TComponent* Owner)
: TChart(Owner)
{
}
//---------------------------------------------------------------------------
namespace Chart1
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TChart1)};
RegisterComponents("Samples", classes, 0);
}
In version 8 I had no problems and it worked!!![Linker Error] Unresolved external '__fastcall Teeprocs::TCustomTeePanelExtended::GetDeviceContext(void *&)' referenced from D:\OBJ\CHART1.OBJ