Results 1 to 4 of 4

Thread: Public Functions, Subs, Variables

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Public Functions, Subs, Variables

    If I make something public in my software, is there any way for something outside of my program to use it?

    Thanks,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    no

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    This may not be what you mean, but if you expose public properties/subs/functions in a class that's available to other developers, yes, they can use them. But that's the purpose of making them public and making the class available.
    If you mean can they access your Public Sub Main in a module, a Public sub or function in a form, etc, probably not, at least easily. I doubt hackers would be interested in apps that people like you and I write (i.e., many people who ask questions on these forums, who are learning, even on the job). I doubt there's any code that can't be hacked eventually.
    Public should be avoided when possible, but hackers can still find a way in if they want.
    At least that's my view. There's really, really hard code to crack, but I don't believe in crackproof code. The best thing you can hope for is that the effort isn't worth it.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by squirrelly1
    If I make something public in my software, is there any way for something outside of my program to use it?

    Thanks,

    Squirrelly1
    Yes and easily . Think about public methods when you create them in a dll file or even in exe file inside a form .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width