473,695 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Communicating Between Multiple Projects

An alternate title for this might be "Creating my own set of core
classes".

Just a quick overview. In order to learn C#, Sockets, Multithreading
and whatever else I can, I am attempting to create MSN Messenger (My
Sucky New Messenger), ie. a simple IM program as it is a interesting
way to incorporate all of the project. This will utilize a server
which all the useres will connect to in order to determine who is
online. After users have connected they will be able to open up
seperate windows in order to chat with other users. The person running
the server will also be able to open up chat windows with the users.

Now my question is this: Both the client and server have the ability to
chat, so for consistancy, I would like it to just use the same window
form. Plus I will be passing user and messages back and forth and
would like to pass objects instead of just using strings.

How can I create a series of common classes and structures (including
my 'Chat' window) that I can share among each of the applications. Is
this as simple as creating a new project in the same solution? This is
what I have done for creating the main Client/Server portions. If so,
how can I start BOTH applications at the same time through VC#?

I was having problems deciding which board this message would be better
suited for

Jan 21 '06 #1
2 2009
Sorry, Accidental post there. Just let me complete this.

I was having problems deciding which board this message would be better
suited for, a language one or a VisualStudio one as it's kinda sitting
right on the edge.

I would appreciate any help or suggestions. Thanks.

Jan 21 '06 #2
Veleek,

For something like this, you want to create a library project. You can
put your common functionality in this project and then you can add a
reference to the output (or the project itself) as well. Then, you can
share the functionality between any other projects you have.

Also, as a side note, there are API's in windows that allow you to
handle messaging functionality pretty easily (which MSN messenger is based
on). You would have to access this functionality through COM interop. The
reference for the APIs are at (watch for line wrap):

http://msdn.microsoft.com/library/de...nger_entry.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Veleek" <ve****@gmail.c om> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
An alternate title for this might be "Creating my own set of core
classes".

Just a quick overview. In order to learn C#, Sockets, Multithreading
and whatever else I can, I am attempting to create MSN Messenger (My
Sucky New Messenger), ie. a simple IM program as it is a interesting
way to incorporate all of the project. This will utilize a server
which all the useres will connect to in order to determine who is
online. After users have connected they will be able to open up
seperate windows in order to chat with other users. The person running
the server will also be able to open up chat windows with the users.

Now my question is this: Both the client and server have the ability to
chat, so for consistancy, I would like it to just use the same window
form. Plus I will be passing user and messages back and forth and
would like to pass objects instead of just using strings.

How can I create a series of common classes and structures (including
my 'Chat' window) that I can share among each of the applications. Is
this as simple as creating a new project in the same solution? This is
what I have done for creating the main Client/Server portions. If so,
how can I start BOTH applications at the same time through VC#?

I was having problems deciding which board this message would be better
suited for

Jan 21 '06 #3

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

Similar topics

1
1619
by: valere | last post by:
I look for information for communicating between JavaScript and a native plugin. I noticed that LiveConnect is oriented to communicate as a "bridge" between Java and JS. But how to process with a native plugin ? Thanks in advance for answering to the newbye I am.
3
2578
by: Harry Whitehouse | last post by:
I'm developing a small class which will be used in a number of distinct C# projects. This small class is undergoing constant change/refinement as I try to employ it in the different projects. I'm trying to maintain a *single* copy of the CS file that can be used in the multiple .NET projects. But I'm observing that when you add a CS file to a given .NET project, subsequent modifications to that file are only saved in the current...
10
1358
by: Sinisa | last post by:
Hello, Currently I have a very large Web application (1 solution with ~20 projects) that is being deployed on an intranet. A descision was made to "break apart" the application (into ~20 solutions -- 1 for each project). For the most part, this was successful, but it did cause a problem, where one project would use session state information, that was populated by another project, and now these seperate projects would become seperate...
4
4801
by: Mikael Olofsson | last post by:
I am interested in peoples experience with communicating with DLLs under Linux. Situation: I'm an electrical engineer that finds pleasure in using my soldering iron from time to time. I also find programming, preferably in Python, entertaining. I wouldn't call myself a programmer, though. Now, I may have found a hobby project that could give me the pleasure from both those worlds. There's this USB development gadget for sale in my
0
8649
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8586
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9004
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7684
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6507
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5842
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3025
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
2
2289
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.