473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

error C2259: 'user_param::UserParamB2<std::string>' : cannot instantiate abstract cl

Hello

I am not able to figure out the reason for the following error:
error C2259: 'user_param::UserParamB2<std::string>' : cannot instantiate abstract class
3> due to following members:

'bool user_param::UserParamBase::readonly(bool)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(128) : see declaration of 'user_param::UserParamBase::readonly'
3> 'bool user_param::UserParamBase::readonly(void)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(127) : see declaration of 'user_param::UserParamBase::readonly'
3> 'SIZE user_param::UserParamBase::winSize(void)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(129) : see declaration of 'user_param::UserParamBase::winSize'
3> 'bool user_param::UserParamBase::get(void)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(132) : see declaration of 'user_param::UserParamBase::get'
3> 'void user_param::UserParamBase::update(void)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(133) : see declaration of 'user_param::UserParamBase::update'
3> 'void user_param::UserParamBase::create(CWnd *,const RECT &)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(134) : see declaration of 'user_param::UserParamBase::create'
3> 'void user_param::UserParamBase::close(void)' : is abstract
3> c:\qc\qc_daq\src\hfgui3\userparambase.h(135) : see declaration of 'user_param::UserParamBase::close'

any help or suggestion is deeply appreciated
tons of Thanks in advance
Attached Files
File Type: txt UserParam.txt (18.4 KB, 304 views)
File Type: txt UserParamBase.txt (25.3 KB, 300 views)
Dec 14 '11 #1
1 1741
weaknessforcats
9,208 Expert Mod 8TB
YOu are attempting to create an object that contains, or inherits, a pure virtual function.

By definition, you cannot call a pure virtual function using an object of the class that defines it. To make sure you don't try this, the compiler prevents you from creating that object.
Dec 15 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Carel Lotz | last post by:
H We have ported our VB 6 application into VB .NET but are still integrating with a few COM + applications written in VB6 running on our application server (Win 2000 Server). We have the proxies...
3
by: ernesto | last post by:
Hi everybody: I have the following implementations: class A { public: virtual int GetValue() = 0; };
7
by: Simon Bond | last post by:
In C# we can go: <foo.cs> // Create a serializable class public class Foo : ISerializable { public void GetObjectData(SerializationInfo info, StreamingContext context) {};
1
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
0
by: Primoz Gustincic | last post by:
I'm explicitly implementing an interface defined in assembly A. public __gc __interface IPop { Void GetPop(); }; public __abstract __gc class CPOP : public IPop { private:
8
by: julian_m | last post by:
I'm having problems with include. I wrote a small example which shows what's going on... I should say that the problems started after I moved to a shared server. All was working fine in my local...
0
by: Ken Varn | last post by:
I have the following code that I cannot get to compile. I get the error "A Sealed class cannot be abstract." public __value struct DVRAVIFileHeader : public ISerializable { double EventID;...
1
by: Bruce | last post by:
public ref class GpsDevice abstract { /* Please note GarXface4::GpsDevice* is in a different namespace from this one and GarXface4::GpsDevice is an unmanaged class */ virtual...
1
by: gozlemci | last post by:
Hi everybody; During my coding, I have encountered a problem.I appreciate if anybody answer it. Here is the simplified code: //Header5.h #pragma once #include <string> using namespace std;
1
by: jainchar | last post by:
hello i m in trouble that my project is in vc++ with mfc.my program giving the error that error c2259:"CException" cannot instantiate abstract class. when i remove this error then my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.