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. C / C++ / MFC
  4. Function Calling

Function Calling

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++question
6 Posts 6 Posters 0 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.
  • P Offline
    P Offline
    polopo
    wrote on last edited by
    #1

    Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

    singh

    N D C S L 5 Replies Last reply
    0
    • P polopo

      Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

      singh

      N Offline
      N Offline
      Nathan Going
      wrote on last edited by
      #2

      I'm not sure why you wouldnt be able to call it. Where are you calling it now?

      1 Reply Last reply
      0
      • P polopo

        Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

        singh

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        polopo wrote:

        Can i call it or not?

        Yes.

        polopo wrote:

        If yes then plz help me

        With what exactly?

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        1 Reply Last reply
        0
        • P polopo

          Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

          singh

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          polopo wrote:

          I have delara a function type is public

          Sorry, I never heard about public functions. :rolleyes: BTW what about a good C++ tutorial? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          1 Reply Last reply
          0
          • P polopo

            Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

            singh

            S Offline
            S Offline
            SRKSHOME
            wrote on last edited by
            #5

            Definetely we can call it.. Don't know what problem you are facing? Could you elaborate please?

            1 Reply Last reply
            0
            • P polopo

              Hi All I have a problem to call function. I have delara a function type is public [code]void abc(PDEV_BROADCAST_DEVICEINTERFACE pDevInf, WPARAM wParam)[/code]. And define in .cpp file. It is working well but i need to call this function in [code]OnInitDialog()[/code]. Can i call it or not? If yes then plz help me

              singh

              L Offline
              L Offline
              laksh2204
              wrote on last edited by
              #6

              If you are saying that you have a class and inside that you have a public member function, then you need to create an object of the class at the place where you want to call it. And then using that object you can call the function. You need to include the .h file in which you have created your class. Well this is like targeting in dark.. If you can put the problem in detail. You may get right solution.

              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