473,608 Members | 2,667 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 2004
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
1613
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
2575
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
1353
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
4798
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
7987
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
8472
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8130
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
6000
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
5471
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
3954
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...
0
4015
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2464
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
1318
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.