Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. candidate function not accessible

candidate function not accessible

Scheduled Pinned Locked Moved Managed C++/CLI
questionc++
4 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bonosa
    wrote on last edited by
    #1

    already tried #pragma make public (mynativestruct) Here is my c++-cli code

    ClassLibraryAT::Class1^ matClass = gcnew ClassLibraryAT::Class1() ;
    

    matClass->M_AT(&cparams,&input,&numcontacts,&contact,&ecdata);

    the 'input' struct in the argument list is comprised of ints doubles, stuff like that. Not a managed struct. It's saying the candidate function M_AT is not accessible. How do I resolve this? thanks, sb

    L 1 Reply Last reply
    0
    • B bonosa

      already tried #pragma make public (mynativestruct) Here is my c++-cli code

      ClassLibraryAT::Class1^ matClass = gcnew ClassLibraryAT::Class1() ;
      

      matClass->M_AT(&cparams,&input,&numcontacts,&contact,&ecdata);

      the 'input' struct in the argument list is comprised of ints doubles, stuff like that. Not a managed struct. It's saying the candidate function M_AT is not accessible. How do I resolve this? thanks, sb

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      bonosa wrote:

      It's saying the candidate function M_AT is not accessible. How do I resolve this?

      Make sure that M_AT is a public method.

      Use the best guess

      B 1 Reply Last reply
      0
      • L Lost User

        bonosa wrote:

        It's saying the candidate function M_AT is not accessible. How do I resolve this?

        Make sure that M_AT is a public method.

        Use the best guess

        B Offline
        B Offline
        bonosa
        wrote on last edited by
        #3

        thanks Richard. It is a public method and shows up in the intellisense.

        L 1 Reply Last reply
        0
        • B bonosa

          thanks Richard. It is a public method and shows up in the intellisense.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I'm afraid that tells us nothing; try looking at the actual class definition or documentation.

          Use the best guess

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups