System::Drawing::Bitmap::Bitmap': candidate function(s) not accessible
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

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

  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,422

    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,062

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

    [ moved thread ]

  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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center