why the function should be in public while creating a dll
-
iam creating a dll when iam writing a function with private and building the project .the dll is ofrming nice but when iam copying the dll and making an instance the method of that dll is not comming ...but when iam using public function it is comming ....what is the reason..even iam creating the object for the same class only
-
iam creating a dll when iam writing a function with private and building the project .the dll is ofrming nice but when iam copying the dll and making an instance the method of that dll is not comming ...but when iam using public function it is comming ....what is the reason..even iam creating the object for the same class only
jagadeeshkumar2106 wrote:
iam creating a dll when iam writing a function with private and building the project .the dll is ofrming nice but when iam copying the dll and making an instance the method of that dll is not comming
Private method are accessible in same class only Even if you create a object of that class and try to access the method it will give error
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
jagadeeshkumar2106 wrote:
iam creating a dll when iam writing a function with private and building the project .the dll is ofrming nice but when iam copying the dll and making an instance the method of that dll is not comming
Private method are accessible in same class only Even if you create a object of that class and try to access the method it will give error
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
i think this will help you in detail go through this link [^] Again if not helpfull then this should help you ;P http://www.google.co.in/search?hl=en&q=C%23+Access+Modifier&btnG=Google+Search&meta=[^]
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
iam creating a dll when iam writing a function with private and building the project .the dll is ofrming nice but when iam copying the dll and making an instance the method of that dll is not comming ...but when iam using public function it is comming ....what is the reason..even iam creating the object for the same class only
It sounds to me like you should not be writing dlls, or any code, you should be working through a beginners book that explains these sort of concepts clearly.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )