473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# Application Question

Hello

I am currently building a small application that uses an Access Database as the backend to store it's data. Currently I have only one EXE that starts the application, what I wanted to know is that there are any resources or info that any one can provide that can help me to maybe break up the program. An example would be to create c# dll's to be used by the program. My idea on doing this is to see if I can bring down the amount of memory the application uses (I will use a profiler later to help me identify the code that may be causing this right now). I want to see if there is something out there that I can use as a 'frame work' so that I get into the habit of writing my applications this way! I just don't want to use one EXE file that grows as I add more features, I want to have a small exe file with other 'helper' files for the application to function properly

Any info you may give me will be greatly appreciated

thanks

Ed P.
Nov 16 '05 #1
1 1067
I don't know if my way is the best but has worked well for me. It allows me
to update my applications without too much re-compile. I create a few dll
projects in the same solution based on what they do (I always set up my
namespaces as "Company" - "Application" - "Component"):

RedCube.NSA.Security: It provides all the security for the app (login,
change passwords, access, etc).
RedCube.NSA.Utilities: Has generic methods like displaying a customer error
messages, about box, splash, etc.)
RedCube.NSA.Database: In charge of connecting to server/database, providing
an open database to calling methods, disconnecting when idle, etc. Sometimes
I call it "Storage" if working with files and not databases. I also tend to
call this "Documents" as in old trusty MFC.
RedCube.NSA.Business: Holds all my business objects that retrieve
information, enforces business rules, etc.
RedCube.NSA.Common: Holds my custom controls, abstract classes, etc.
RedCube.NSA.WinUI: My Windows executable.
RedCube.NSA.WebUI: If it's a web application.

As I said, probably not the best but it's worked pretty well if various
projects.

Eddie Paz

"Ed_P." <an*******@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
Hello,

I am currently building a small application that uses an Access Database as the backend to store it's data. Currently I have only one EXE that
starts the application, what I wanted to know is that there are any
resources or info that any one can provide that can help me to maybe break
up the program. An example would be to create c# dll's to be used by the
program. My idea on doing this is to see if I can bring down the amount of
memory the application uses (I will use a profiler later to help me identify
the code that may be causing this right now). I want to see if there is
something out there that I can use as a 'frame work' so that I get into the
habit of writing my applications this way! I just don't want to use one EXE
file that grows as I add more features, I want to have a small exe file with
other 'helper' files for the application to function properly.
Any info you may give me will be greatly appreciated.

thanks,

Ed P.

Nov 16 '05 #2

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

Similar topics

3
by: Jack | last post by:
Hi, We have a couple of web applications where data is updated on a weekly basis. The data entry is done in a vb access application which is kept internal. The database is uploaded to the web...
2
by: Shantanu Bhattacharya | last post by:
Hi, I have a 2-tier application that allows the end user to create a form containing controls of the user's choice. The same user can then populate the database by entering data created using...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
10
by: Saso Zagoranski | last post by:
hi, this is not actually a C# problem but since this is the only newsgroup I follow I decided to post my question here (please tell me where to post this next time if you think this post...
4
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference...
3
by: SL | last post by:
All, As I understand it, a single application (i.e. IIS virtual directory) in ASP.NET may in fact have more than one corresponding HttpApplicationState object (more or less one per server...
3
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website....
1
by: aparnasinha26 | last post by:
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4...
16
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm looking for a way to programmatically retrieve the following if possible: Windows Installation Key or COA from the registry Windows installed...
7
by: Michael Bray | last post by:
I have an application that has a webservice, and the web service is utilizing Application variables to store login tokens for clients. However, the application variable seems to be disappearing on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.