473,327 Members | 2,025 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,327 software developers and data experts.

classes

I made a web-application, and i created several classes. Now i want to make a
second web-application, which uses the same classes. How can i acchieve this
? Off course with copy - paste, but that would give problems, when i change
something in the classes. The other project wouldn't be up-to-date.

Isn't it possible to put al my classes in some 'package', and 'import' the
'package' in some other application ?

Bart
Nov 18 '05 #1
3 1006
Ben
You could compile the classes into a class library, strongly name it and
place it in the GAC. You could just complie the class and place it in a
directory, then have your projects browse to that directory for reference.
You could compile the library and place the dll in each projects bin
directory...

Ben

"Bart" <Ba**@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
I made a web-application, and i created several classes. Now i want to make
a
second web-application, which uses the same classes. How can i acchieve
this
? Off course with copy - paste, but that would give problems, when i
change
something in the classes. The other project wouldn't be up-to-date.

Isn't it possible to put al my classes in some 'package', and 'import' the
'package' in some other application ?

Bart


Nov 18 '05 #2
What software did you use to make your web application?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Bart" <Ba**@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
I made a web-application, and i created several classes. Now i want to make a second web-application, which uses the same classes. How can i acchieve this ? Off course with copy - paste, but that would give problems, when i change something in the classes. The other project wouldn't be up-to-date.

Isn't it possible to put al my classes in some 'package', and 'import' the
'package' in some other application ?

Bart

Nov 18 '05 #3
Hi Bart,
I would create another project which have all these common classes. Then I
will add this project to each of your projects, which require this common
classes. You could go with placing the output of the common class dll into
GAC, but I would rather not. Since you are saying, the classes could change
again, so each time your common dll gets updated, you would have to deploy
it to DLL. You could consider the GAC option for production server. But on
your developing machine as I said, create another project which contains
these classes, and keep that project type as Class library. Let me know if
you need any help in understanding what I said
"Bart" <Ba**@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
I made a web-application, and i created several classes. Now i want to make a second web-application, which uses the same classes. How can i acchieve this ? Off course with copy - paste, but that would give problems, when i change something in the classes. The other project wouldn't be up-to-date.

Isn't it possible to put al my classes in some 'package', and 'import' the
'package' in some other application ?

Bart

Nov 18 '05 #4

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

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
9
by: Jack | last post by:
Hello I have a library of calculationally intensive classes that is used both by a GUI based authoring application and by a simpler non-interactive rendering application. Both of these...
9
by: Aguilar, James | last post by:
I know that one can define an essentially unlimited number of classes in a file. And one can declare just as many in a header file. However, the question I have is, should I? Suppose that, to...
12
by: Langy | last post by:
Hello I'm fairly new to C++ but have programmed several other languages and found most of c++ fairly easy (so far!). I've come to a tutorial on classes, could someone please tell me why you...
4
by: john townsley | last post by:
do people prefer to design classes for the particular job or for a rangle of tasks they might encounter now and in the future. i am doing some simple win32 apps and picking classes is simple, but...
2
by: joye | last post by:
Hello, My question is how to use C# to call the existing libraries containing unmanaged C++ classes directly, but not use C# or managed C++ wrappers unmanaged C++ classes? Does anyone know how...
18
by: Edward Diener | last post by:
Is the packing alignment of __nogc classes stored as part of the assembly ? I think it must as the compiler, when referencing the assembly, could not know how the original data is packed otherwise....
6
by: ivan.leben | last post by:
I want to write a Mesh class using half-edges. This class uses three other classes: Vertex, HalfEdge and Face. These classes should be linked properly in the process of building up the mesh by...
0
by: ivan.leben | last post by:
I am writing this in a new thread to alert that I found a solution to the problem mentioned here: http://groups.google.com/group/comp.lang.c++/browse_thread/thread/7970afaa089fd5b8 and to avoid...
2
by: Amu | last post by:
i have a dll ( template class) ready which is written in VC++6. But presently i need to inherit its classes into my new C#.net project.so if there is some better solution with u then please give me...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.