Function Calling
-
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
-
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
I'm not sure why you wouldnt be able to call it. Where are you calling it now?
-
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
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
-
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
polopo wrote:
I have delara a function type is public
Sorry, I never heard about
public
function
s. :rolleyes: BTW what about a goodC++
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] -
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
-
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
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.