473,566 Members | 3,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error C3767: candidate function(s) not accessible

Hello!

I have a single class without any inheritance over there, and I get
that error on its constructor which is an empty function:

LabelProcessor: :LabelProcessor () {
}
The full error message is as follows:
..\LabelProcess or.cpp(5) : error C3767:
'System::Drawin g::Bitmap::Bitm ap': candidate function(s) not accessible

How do I get rid of such an error? Thank you in advance for any hints.
--
Iwanow

Sep 24 '06 #1
2 3465
Hi Iwanow,

"Iwanow" <kp****@wp.plwr ote in message
news:11******** **************@ i3g2000cwc.goog legroups.com...
Hello!

I have a single class without any inheritance over there, and I get
that error on its constructor which is an empty function:

LabelProcessor: :LabelProcessor () {
}
The full error message is as follows:
.\LabelProcesso r.cpp(5) : error C3767:
'System::Drawin g::Bitmap::Bitm ap': candidate function(s) not accessible

How do I get rid of such an error? Thank you in advance for any hints.
I guess you have a class member of type Bitmap which has no public default
constructor so your LabelProcessor constructor cannot create the Bitmap
instance. Either make that member a pointer which you initialize with gcnew
or initialize it in the constructor list like so#

LabelProcessor: :LabelProcessor () :
_yourBitmapVari able(bitmapCons tructorParamete rs)
{
}

--
SvenC
--
Iwanow

Sep 25 '06 #2
SvenC wrote:
I guess you have a class member of type Bitmap which has no public default
constructor so your LabelProcessor constructor cannot create the Bitmap
instance. Either make that member a pointer which you initialize with gcnew
or initialize it in the constructor list like so#
SvenC,

Thank you for your help. I noticed that one of my bitmap member
variables was missing the pointer sign (^). I added it, and now it
works perfectly. Thank you very much once again.
--
Iwanow

Sep 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1626
by: Andrew Chanter | last post by:
I have an application that produces examination scores. Candidates have a choice of sitting 1 of 2 subjects or both. I have produced a query that gives all the results for candidates that sat subject A. This contains some fairly complex calculations. My problem is that I need to produce a report that shows the scores for all candidates...
1
1604
by: JW | last post by:
I received this error while compiling OSE 6.0 with MSVC7.1 (it compiles with MSVC7.0). otcbitset.cc .../include\OTC\collctn\strgactn.hh(45) : error C3767: 'otclib_hash' matching function is not accessible could be the friend function at '../include\OTC\misc\hash.hh(54)' : 'otclib_hash' or the friend function at ...
6
4397
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the same invocation from a DistantlyRelated class. What actually happened was that the compiler produced: error C2247: 'A::function' not accessible...
4
4498
by: Adriano Coser | last post by:
I'm getting the following error: error C3767: PictureSource - candidate function(s) not accessible when accessing a public member function of a managed class, either from managed or unmanaged code. The class is an owner draw control implemented into a Control Library. The access is on a DLLs that support CLR with old syntax. The code...
3
5469
by: Steve Jaworski | last post by:
Using VS2005Beta 2 I have VC++/CLI class defined in a Class Library DLL as: #foo.h namespace foo { public ref class Convert { public: static Obj^ ToObj(UnmanagedObj* uObj);
1
2751
by: Antonio Carvalho | last post by:
I am getting this compler error in similar situations as described in previous posts to this site, however in my case the solution that is proposed is of no use. In my case, the managed C++ class has a method that takes a COM Interface pointer that is imported from a typelib and hence it is not possible at all to forward-declare it,...
2
7868
by: ajtaylor | last post by:
Hello, Sorry another question on mixed code assemblys. I have a static class library containing a lot of unmanged code. I have created a mixed code assembly which I am attempting to use in a forms project. Thus,
15
5981
by: aaragon | last post by:
Hello, does anyone have a clue about this error? and how to solve it? It seems to be trivial to me, but not for the compiler. I'm using g++ 4.2 on an Ubuntu Linux system: // main() .... std::ofstream fout; fout.open("hello.out"); fout<<setfill('-')<<setw(20)<<"-"<<setfill(' ')<<endl; fout<<"hello "; // this is line 139
9
5140
by: dylan.miller | last post by:
I'm having trouble understanding the internal access modifier. There are many classes in my assembly that should not be accessible outside of the assembly. I've used the internal access modifier for these classes. I have public classes that use the internal classes, but I get a CS0051 error if I use an internal class as a parameter to a...
0
7673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.