473,385 Members | 1,337 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,385 software developers and data experts.

programmed myself into a corner? architecture question.

Hi all,
This is a bit of an academic question for you smarties out there....

I inherited this application that had 40 forms, 120 datasets, and no dll's.
I am starting to separate this app (ie: myapp.exe) into functional areas
(like product.dll, invoice.dll, customer.dll, etc.). Hopefully, this will
make the functional areas more encapsulated and manageable.

The thing is, I have yet to put the invoicing functionality in the
invoice.dll project, because there are so many global variables in
myapp.exe, it will take a little time to unhook all of the stuff and make it
work independently.

So, i do have the customer.dll working (which has customerlist,
customerdetail, etc.), but I need this dll to launch a screen back in
myapp.exe. However, I am unable reference it because it is not a DLL, and I
can't figure out how I will launch it.
Oct 24 '05 #1
9 1490

"George Hardy" <sp******************@usmedequip.com> wrote in message
news:Oa**************@tk2msftngp13.phx.gbl...
Hi all,
This is a bit of an academic question for you smarties out there....

I inherited this application that had 40 forms, 120 datasets, and no
dll's. I am starting to separate this app (ie: myapp.exe) into functional
areas (like product.dll, invoice.dll, customer.dll, etc.). Hopefully,
this will make the functional areas more encapsulated and manageable.

The thing is, I have yet to put the invoicing functionality in the
invoice.dll project, because there are so many global variables in
myapp.exe, it will take a little time to unhook all of the stuff and make
it work independently.

So, i do have the customer.dll working (which has customerlist,
customerdetail, etc.), but I need this dll to launch a screen back in
myapp.exe. However, I am unable reference it because it is not a DLL, and
I can't figure out how I will launch it.


Split out the form(and any other important code) into a dll and make
myapp.exe a simple shell.
Oct 25 '05 #2
i wnat to make the main app a simple shell...but i can't leave a couple of
the forms in the main app, until can get them detached? my problem is that
i want to kind of do this piece-meal. there are all sorts of stupid global
variables, stuctures, public bas modules, etc...but i guess if i cant do it
slowly, then all at once.

later release date then.
george
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:Op**************@TK2MSFTNGP12.phx.gbl...

"George Hardy" <sp******************@usmedequip.com> wrote in message
news:Oa**************@tk2msftngp13.phx.gbl...
Hi all,
This is a bit of an academic question for you smarties out there....

I inherited this application that had 40 forms, 120 datasets, and no
dll's. I am starting to separate this app (ie: myapp.exe) into functional
areas (like product.dll, invoice.dll, customer.dll, etc.). Hopefully,
this will make the functional areas more encapsulated and manageable.

The thing is, I have yet to put the invoicing functionality in the
invoice.dll project, because there are so many global variables in
myapp.exe, it will take a little time to unhook all of the stuff and make
it work independently.

So, i do have the customer.dll working (which has customerlist,
customerdetail, etc.), but I need this dll to launch a screen back in
myapp.exe. However, I am unable reference it because it is not a DLL,
and I can't figure out how I will launch it.


Split out the form(and any other important code) into a dll and make
myapp.exe a simple shell.

Oct 25 '05 #3
Neo
Why break things into seprate dll's just for the sake of organization?
I don't understand why people do this, it just complicates referenceing
issues. Like you are are experienceing. Use Namespacing that is what it
is good for. Sit down and plan out a good detailed namespace. In fact
while you are at it plan it for the whole company.

Then decide to break up the dlls based on dependancies. You you
probably find that you don't have very few or none at all.

Oct 25 '05 #4
perhaps i am confused as to your response...

i understand the concept of namespaces, and i am not sure why you don't like
to use separate class libraries. As far as I know, you cant have more than
one namespace per project, so NOT breaking out the app into separate dll's
would actually prevent me from creating more than one namespace.

Yes, if I have separate functional dll's in the project, I can give them the
SAME namespace as my main project, and yes, the referencing issue is
avoided. As a matter of fact, this may be the approach I take with this, is
that all my dlls are in the [myapp] namespace. The namespace hierarchy is
inherently flat, due to the nature of the application, so there really aint
much planning.

The only problem with this approach is, from what I can tell, is
encapsulation and privatizing the scope of each dll.

Comments? Suggestions?

george hardy

"Neo" <ts******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Why break things into seprate dll's just for the sake of organization?
I don't understand why people do this, it just complicates referenceing
issues. Like you are are experienceing. Use Namespacing that is what it
is good for. Sit down and plan out a good detailed namespace. In fact
while you are at it plan it for the whole company.

Then decide to break up the dlls based on dependancies. You you
probably find that you don't have very few or none at all.

Oct 25 '05 #5
i guess you weren't saying that you dont like dlls, you just like to break
them out afterwards....

thanks..

"Neo" <ts******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Why break things into seprate dll's just for the sake of organization?
I don't understand why people do this, it just complicates referenceing
issues. Like you are are experienceing. Use Namespacing that is what it
is good for. Sit down and plan out a good detailed namespace. In fact
while you are at it plan it for the whole company.

Then decide to break up the dlls based on dependancies. You you
probably find that you don't have very few or none at all.

Oct 25 '05 #6
George Hardy wrote:
to use separate class libraries. As far as I know, you cant have more than
one namespace per project, so NOT breaking out the app into separate dll's
would actually prevent me from creating more than one namespace.


You can have as many namespaces per project as you like, no limit.

--
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space program."
-- Larry Niven
Oct 25 '05 #7
sorry, i must have had the "root namespace" from the project properties
dialog confused with having public classes in the project. is this what you
mean by having unlimited namespaces in a project--unlimited classes? if so,
this newbie's terminology is messed up.

wish i worked in a shop with other programmers....sucks trying to bounce
ideas of myself.

thanks,
george hardy

"Joel Lucsy" <jj*****@usol.com> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
George Hardy wrote:
to use separate class libraries. As far as I know, you cant have more
than one namespace per project, so NOT breaking out the app into separate
dll's would actually prevent me from creating more than one namespace.


You can have as many namespaces per project as you like, no limit.

--
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space
program." -- Larry Niven

Oct 25 '05 #8

"George Hardy" <gh******@yahoo.com> wrote in message
news:e2*************@TK2MSFTNGP10.phx.gbl...
i wnat to make the main app a simple shell...but i can't leave a couple of
the forms in the main app, until can get them detached? my problem is that
i want to kind of do this piece-meal. there are all sorts of stupid global
variables, stuctures, public bas modules, etc...but i guess if i cant do it
slowly, then all at once.


Not really, you are going to have to have some top level library to avoid
circular references. You could build some a class that that let you load
forms and the like via its members, but its messy and is probably be
unattractive.
Oct 26 '05 #9
let me ask you guys this...

is there a good book that would show good .net application design on a
high-level scale? Back in my VB5 days, there was a good book for this (I
thought) called Doing objects in VB 5 by Deborah Kurata....

Is there a book like this now?

thanks,
george hardy

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2***************@TK2MSFTNGP15.phx.gbl...

"George Hardy" <gh******@yahoo.com> wrote in message
news:e2*************@TK2MSFTNGP10.phx.gbl...
i wnat to make the main app a simple shell...but i can't leave a couple of
the forms in the main app, until can get them detached? my problem is
that i want to kind of do this piece-meal. there are all sorts of stupid
global variables, stuctures, public bas modules, etc...but i guess if i
cant do it slowly, then all at once.


Not really, you are going to have to have some top level library to avoid
circular references. You could build some a class that that let you load
forms and the like via its members, but its messy and is probably be
unattractive.

Oct 26 '05 #10

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

Similar topics

2
by: comp.lang.php | last post by:
I can't possibly reproduce the code for this as the 2 classes in question are about 1500 lines each and condensing is in this case impossible due to algorithmic logic dependencies. Let's say you...
3
by: Michael Crawford | last post by:
Hi, Where would one start for this type of application: I want to create an vb.net container application that has the gives the end user the ability to install and uninstall plugins or add-in...
4
by: JustSomeGuy | last post by:
I had written a debugging/trace loggin class that l have been using to test and develope my applications... At first the application was tested and ran as a single thread, with all output going to...
6
by: Tim | last post by:
Hello everyone. I visit this board pretty regularly but have never posted. My question is an application architecture question... so hopefully it's okay to post in the dotnet general forum. I...
2
by: hans | last post by:
Hi! I am new to .NET (coming from Java). We have to implement a desktop application which extracts data from a database, does some analysis, filtering etc. and displays the results. I have...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
9
by: George Hardy | last post by:
Hi all, This is a bit of an academic question for you smarties out there.... I inherited this application that had 40 forms, 120 datasets, and no dll's. I am starting to separate this app (ie:...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
13
by: rrs.matrix | last post by:
hi i have to detect the type of CPU. whether it is 32-bit or 64-bit.. how can this be done.. can anyone please help me.. thanks.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.