473,545 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using common code

23 New Member
I have a very simple need. I have been delving through tons of docs, but everything I am reading is misleading, so far.

I wrote D:\Develop\Comm on\utility.cs. It has some common methods that I want to be able to use in ANY of my projects. I do NOT want to physically include this class into those projects, because if it needs to change, I want to have to change only ONE file.

Now in my project called CoffeGame.cs, how do I tell it that I want to use the utility.cs I described above? If I add it in the IDE, it physically copies it in, and any changes I make will not be reflected in the original.

Any help would be appreciated!
Dave
Feb 6 '22 #1
0 4441

Sign in to post your reply or Sign up for a free account.

Similar topics

2
398
by: Epson Barnett | last post by:
Hi, What techniques are other people using for common code libraries? I have some classes I've written that will be useful in all my projects. I'd like to have one copy of these common classes that is available to multiple projects. I'd also like these common classes linked relatively, so that my development server's directory structure...
1
1857
by: richardlane | last post by:
Hi, basic question here - I'm struggling with the transfer from asp to asp.net a bit, especially in seeing the 'bigger picture' of how things are best structured. I have a website made up primarily of aspx pages. I have separated out the common <head> as an .ascx file and intend to do the same for other common regions of html. In the...
0
2288
by: Jacob Pallapati | last post by:
Hi, I have a trigger in which I build a String from the contents of a table. In a stored procedure I would use a cursor which would look like: set str_to_build = ''; create c1 cursor for select col1 from table1;
0
466
by: Tim | last post by:
Access 97: I have a table with a hyperlink field that I display on a form. I can click on the form field and the hyperlink activates correctly. However, if I try to activate the hyperlink using VB code, the last hyperlink that was clicked is the only one that displays. Background: The database is for providing instruction documentation for...
5
5801
by: Chand | last post by:
Private Sub tbDate_AfterUpdate() Dim cnn As New ADODB.Connection Dim rst As New ADODB.Recordset rst.CursorLocation = adUseClient Set cnn = CurrentProject.Connection rst.Open "SELECT * FROM Table1 ORDER BY StudentID ASC", cnn, adOpenStatic, adLockReadOnly, adCmdText
1
1388
by: Vladimír Karásek | last post by:
Hi there, does anybody know, how to create a class, which is can be inherited by both aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl) classes. I have the bunch of same methods, which I want to reuse in both ascx and aspx classes. Any idea how to do it? Thanks for all your hints.
4
2486
by: Vladimír Kolesnik | last post by:
Hi there, does anybody know, how to create a class, which is can be inherited by both aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl) classes. I have the bunch of same methods, which I want to reuse in both ascx and aspx classes. Any idea how to do it? Thanks for all your hints.
0
910
by: John M | last post by:
Hello, In Microsoft Visual Studio .NET 2003 I am using in an aspx page, the oleDBConnection, oleDBCommand and oleDBAdapter. Objects are respectively : oleDBConnection1, oleDBCommand1 and oleDBAdapter1. 1) To connect datagrid to datasource, I am using some code in VB.
2
1237
by: ChillUmesh | last post by:
hi, i've to filter out files without any extension using common dailog control can any one help me out. thnx
2
1212
chandru8
by: chandru8 | last post by:
HI ALL txttype.SelStart = 0 'txttype.SelLength = Len(txttype.Text) FOR EACH TEXTBOX I NEED TO REPLICATE THE ABOVE CODE. HOW CAN I USE A COMMON CODE FOR ALL THE TEXT BOXES IN MY PROJECT IAM USING OVER 109 TEXT BOXES IS THIS WAY TO REPLICATE THE CODE OR ANY SOLUTION
0
7487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7420
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
7680
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. ...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
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...
0
4966
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...
0
3476
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...
1
1908
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
0
731
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.