CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    29

    System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    Hi i am having some weird error that i don't know where it is come from:
    Error 1 error C3767: 'System:rawing::Bitmap::Bitmap': candidate function(s) not accessible

    Can you please tell me what whould i do with these error? Thanks a lot


    Here is the code that i use


    //some code here
    using namespace System:rawing;
    //some code here


    public: System::Void axGrFingerXCtrl1_FingerDown(System::Object^ sender, AxGrFingerXLib::_IGrFingerXCtrlEvents_FingerDownEvent^ e) {
    //do something here
    Bitmap handle;
    //do something here

    }

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    Wrong forum.

    Please post your question in the Managed C++ forum, as your code is not traditional C++.

    Regards,

    Paul McKenzie

  3. #3
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    Are you trying to mix normal VC++ program with .NET code ?
    Regards,
    Ramkrishna Pawar

  4. #4
    Join Date
    Feb 2007
    Posts
    29

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    Quote Originally Posted by Krishnaa
    Are you trying to mix normal VC++ program with .NET code ?

    Yeah is there way to get away with these?

    Thanks in advances

  5. #5
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    You need to use VC++.NET (managed C++), there are separate project types for VC++.NET, look for project types under New Project->Visual C++ Projects-> .NET.
    Regards,
    Ramkrishna Pawar

  6. #6
    Join Date
    Feb 2007
    Posts
    29

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    Quote Originally Posted by Krishnaa
    You need to use VC++.NET (managed C++), there are separate project types for VC++.NET, look for project types under New Project->Visual C++ Projects-> .NET.

    The problem that i have here is i have a code that can compile. This project use /clrldSyntax to compile. So i think it use the old C++. I want to use that in .net version. Is there any much different between that two version of C++?
    What sort of option that i should choose to get the two code working with other?


    I have check in my Visual Studio, there is no option that you mentioned


    Thanks you very much

  7. #7
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    [ moved thread ]
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  8. #8
    Join Date
    Feb 2010
    Posts
    1

    Re: System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible

    This should work if you develop Windows Forms app with C++:

    //some code here
    using namespace System:rawing;
    //some code here


    public: System::Void axGrFingerXCtrl1_FingerDown(System::Object^ sender, AxGrFingerXLib::_IGrFingerXCtrlEvents_FingerDownEvent^ e) {
    //do something here
    Bitmap^ handle;
    //do something here

    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured