473,545 Members | 2,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1011
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**@discussio ns.microsoft.co m> wrote in message
news:3D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:3D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:3D******** *************** ***********@mic rosoft.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
741
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 managed point-of-view I've noticed that: 1) for each managed and unmanaged C function (not C++ classes) I get a public managed static method...
9
1630
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 applications need to serialise the classes to/from the same files but only the GUI app needs the full range of class methods. Now, the rendering app needs...
9
6629
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 use the common example, I have a situation where I am implementing many types of Shapes. My current way of thinking is, well, since they are all...
12
21205
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 would need to use a class? Perhaps you could also give an example on when it might be used rather than an alternative method.
4
1801
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 understanding others peoples logic isnt (that doesnt mean they are wrong). i prefer designing classes for the currect job and making tangible...
2
9483
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 to do that? Thanks. Tsung-Yu
18
2025
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. Yet, in my understanding, attributes are only __gc and __value class specific and do not apply to __nogc classes. Is this correct ? If so, how is...
6
2923
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 calling Mesh class functions. Let's say they point to each other like this: class Vertex { HalfEdge *edge; }; class HalfEdge { Vertex* vert;
0
2020
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 this topic getting lost before people interested in the problem notice it. The important tricks to the solution are two: 1) make the custom classes...
2
1907
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 the solution.
0
7428
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7685
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. ...
1
7452
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...
0
6014
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...
1
5354
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...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
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
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
738
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...

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.