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. Web Development
  3. ASP.NET
  4. why the function should be in public while creating a dll

why the function should be in public while creating a dll

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 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.
  • J Offline
    J Offline
    jagan123
    wrote on last edited by
    #1

    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

    S C 2 Replies Last reply
    0
    • J jagan123

      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

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      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... "

      J 1 Reply Last reply
      0
      • S Sandeep Akhare

        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... "

        J Offline
        J Offline
        jagan123
        wrote on last edited by
        #3

        hi sandeep will u explain in clear

        S 1 Reply Last reply
        0
        • J jagan123

          hi sandeep will u explain in clear

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          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... "

          1 Reply Last reply
          0
          • J jagan123

            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

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            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 )

            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