471,605 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

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 1879
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.com

"Veleek" <ve****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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 discussion thread is closed

Replies have been disabled for this discussion.

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.