473,785 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sub system protection

Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #1
5 1907
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.

Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #2
I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to each
class
in the sub system, except the facade, and compile it to a separate assembly.
The question is, is there a way for different sub systems to reside in the
same assembly
and yet for each sub system classes to be hidden inside their sub system.
"justin creasy" <ju***********@ gmail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.

Sharon wrote:
>Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.

Nov 16 '06 #3
I can think of two ideas right away that allow you to hide the details
of a class. Declaring variables and methods private will help to hide
them, and using different namespaces for classes also helps to seperate
them. I think what you want to do is use a different namespace for each
sub system, then methods in one sub system would not have public access
to attributes of another sub system. If this is not what you mean I'm
sorry, but I'm still a little confused on your goals. "sub system" is a
very ambiguous term.

On Nov 16, 11:32 am, "Sharon" <n...@void.noth ingwrote:
I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to each
class
in the sub system, except the facade, and compile it to a separate assembly.
The question is, is there a way for different sub systems to reside in the
same assembly
and yet for each sub system classes to be hidden inside their sub system.

"justin creasy" <justin.cre...@ gmail.comwrote in messagenews:11* *************** ******@m73g2000 cwd.googlegroup s.com...
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.
Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #4
Hey Justin.
First, thanks for helping me out here.
Separating sub systems using different namespaces,
will not prevent one sub system from accessing another sub system classes.
Cause a sub system classes are not really hidden.

Below is the definition of a sub system.
It does not state that a sub system must be a "black box", but i want it to
be.

----------------------------------------------------------------------------------
A subsystem is a chunk of cohesive classes that can be compiled, linked, and
tested separately
Robert C. Martin gives three rules of thumb that may help to identify
subsystems:
To be cohesive, the classes in a [subsystem]
1. Must be closed together
2. Must be reused together
3. Should share a common function or policy
Classes are closed together, if a change to the application effects either
all or none of them.
------------------------------------------------------------------------------------
"justin creasy" <ju***********@ gmail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>I can think of two ideas right away that allow you to hide the details
of a class. Declaring variables and methods private will help to hide
them, and using different namespaces for classes also helps to seperate
them. I think what you want to do is use a different namespace for each
sub system, then methods in one sub system would not have public access
to attributes of another sub system. If this is not what you mean I'm
sorry, but I'm still a little confused on your goals. "sub system" is a
very ambiguous term.

On Nov 16, 11:32 am, "Sharon" <n...@void.noth ingwrote:
>I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to
each
class
in the sub system, except the facade, and compile it to a separate
assembly.
The question is, is there a way for different sub systems to reside in
the
same assembly
and yet for each sub system classes to be hidden inside their sub system.

"justin creasy" <justin.cre...@ gmail.comwrote in
messagenews:11 *************** *******@m73g200 0cwd.googlegrou ps.com...
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.
Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.

Nov 17 '06 #5
"Sharon" <no*****@null.v oidwrote in message
news:ex******** ******@TK2MSFTN GP03.phx.gbl...
Hey Justin.
First, thanks for helping me out here.
Separating sub systems using different namespaces,
will not prevent one sub system from accessing another sub system classes.
Cause a sub system classes are not really hidden.
Afaik, all you can do (besides create a seperate dll) is create a private
class inside a class.

Michael
Nov 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2338
by: Naeem Sarfraz | last post by:
I understand this file is under protection but how do I remove it from the 'detected dependencies' in the Installer project. The error message: 'shdocvw.dll' should be excluded because its source file 'C:\WINDOWS\System32\shdocvw.dll' is under Windows System File Protection.
9
2368
by: Howard | last post by:
I am currently looking at the various packages that are available for software protection. I have a particular question that I'd welcome your feedback on. Background info: I work for a company that develops software, and typically releases software SDKs. Development is in C++ using MS Visual C++. We need to apply software encryption/protection to achieve: 1) Time-limited versions (e.g software expires after X days)
3
5384
by: nathanvi | last post by:
Hi, i've a mdb access file and i launched Tools->Protection->SettingAutomaticProtection (sorry if translation isn't fine but the language in my PC is not english :-( ) two weeks ago .. In other words i've automatically set protection in DB. Now access created a "protection.mdw" in which are stored groups and users. I have administrator account and now i'd like to remove all protection...
2
1820
by: I am Sam | last post by:
Can someone tell me what is wrong with this web.config file? Whenever I try to open a file in the protected directory "Administration" I get an error message indicating that the <system.web> Element is not recognized or something to that effect. Any suggestions or help would be greatly appreciated. I have attached the web.config file below. Thank you. ************************************************************ <?xml version="1.0"...
9
1916
by: John | last post by:
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software that works? Thanks very much John
19
2213
by: John | last post by:
I would like to use some third party software for copy protection, software that prevents from copy paste program to another computer (not obfuscator). I am looking for some good solution (hardware lock is not an option). Can you reccomend me software based on your experiences?
5
3375
by: Jerry J | last post by:
I want to use the System.Drawing.Image class. According to the help file, this is an abstract base class. Because it is supposedly abstract, I created another class that inherits from it. However, when I did this I got the following error: 'System.Drawing.Image.Image()' is inaccessible due to its protection level Looking at other online examples, I found that the proper way to use it is like this:
11
3474
by: justsome_newbie | last post by:
Hello experts! I'm trying to send mail from my C# Asp.Net webpage. I used the code samples at www.systemnetmail.com but it still won't send. I think the problem is on the iis or exchange server side but I can't find any tutorials on how to configure the server(s). Any good links for this? Any advice is welcome!
0
1874
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized creation, modification and deletion of database objects. It provides flexibility through various protection types and granularity at different protection levels. CodeSecure comes with a full-featured auditing tool that keeps track of all changes...
21
2459
by: omkar pangarkar | last post by:
Hi all, I have two simple hello world programs one using printf() and other using write() --prog 1-- #include<stdio.h> #include<stdlib.h> int main() { printf("Hello"); /* up to here write() isn't called, if u * give \n here then two write()s will
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8979
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.