|
-
Sep 14th, 2000, 08:54 AM
#1
Thread Starter
Member
I created a property procedure in a class module.
The Get procedure is public.
The Let procedure is friend.
I compiled the project into a DLL and then added a reference to the new DLL to a brand new project.
I can still access the friend procedure from code in my new project.
Because of this I am a little confused as to how or what the friend declare does.
I thought, for instance, if I created a series of classes and compiled it into a DLL that the friend keyword would allow the different classes in the DLL to communicate the properties to one another without exposing those properties to a project that the compiled DLL was added to. Sorta like handing private messages back in forth in class without the teacher (the new project the DLL was added to) being able to see the notes. =)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|