Solved

Whiteboard

Posted on 1998-12-15
12
160 Views
Last Modified: 2010-05-03
I need help to make a whiteboard using either IRC or some other TCP protocol. Thanks
0
Comment
Question by:Willy543
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +4
12 Comments
 
LVL 2

Expert Comment

by:obregoru
ID: 1450316
That is worth about 1000 points or more!


0
 
LVL 1

Expert Comment

by:OeilNoir
ID: 1450317
i could help you with TCP/IP, but what do you mean exactly by a "whiteboard"?
0
 

Author Comment

by:Willy543
ID: 1450318
A Whiteboard is a shared drawing between many people. The hard part about is making them all synchronized together. Everyone must be seeing the same drawing. And when they change something on the drawing it shows up on all the people's screens. Thanks for any help!
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 3

Expert Comment

by:myqlG
ID: 1450319
This is not a simple thing... You can have picture boxes
and allow people to write on them..then send the picturebox
to the next person and BUT that person could have written
on there picture box..so there is an XOR or somilar
THEN take THAT to the next person..etc.. etc.. etc..
ugly and slow.. but workable
0
 

Author Comment

by:Willy543
ID: 1450320
How about if one person is drawing and everyone else can see it? How can i make everyone see it the same?
0
 
LVL 3

Expert Comment

by:Sendoh
ID: 1450321
Hi !
You can try implement a common picture act as server and everybody access to the same server.
This achive this, DCOM if you choice.

Hope it'll help you !!
0
 
LVL 3

Expert Comment

by:Sendoh
ID: 1450322
Hi !
You can try implement a common picture act as server and everybody access to the same server.
To achive this, DCOM if you choice.

Hope it'll help you !!
0
 
LVL 1

Expert Comment

by:OeilNoir
ID: 1450323
ohhhhhhhhhhhhhhhhhhhhhhhh... i had planned to do such a thing for the TCP/IP multi-user chat program i'm making...

 i have not started to do mine yet, but i had though HOW to do it..
What part are you at? just drawing and sending the datas? or you still working on
establising the connection? i could give you the source code of the chat program i started
to do with a friend.. it was planned to easily introduce such a thing.
so, if this may help you, here how i planned to do mine.

we planned to simply draw lines with the command "line" and send the coordinate to the
other side, who would draw the line automaticaly.

i had also made a small drawer program as practice..

in the event MouseDown, it had a variable who was set to true
in the MouseMove, if that variable was set to true, it was drawing a line from the
1st coordinate it recived to the 2nd. it was keeping the coordinate of the 2nd position
to use it to draw the begining of the 2nd line.. and so on. until mouseUp and the variable is
turned to false.

all i needed to add to this code was to SEND the Coordinate using TCP/IP to the other(s) end(s) and the other side simply do object.line with the coordinate. This way have
not been tested, but i'm sure it will work... i could also send you the code (if i find it) of the
drawer if it can help you to understand better...
0
 

Author Comment

by:Willy543
ID: 1450324
Can you please send the source for your chat program. E-mail me at bart235@yahoo.com please Thanks!
0
 
LVL 1

Expert Comment

by:OeilNoir
ID: 1450325
Sure, i can't send it before friday or saturday though... but i will send it.
0
 
LVL 3

Expert Comment

by:covington
ID: 1450326
If you're trying to develop this as a product, don't bother. There's a good free one available already - MicroSoft's NetMeeting.

If you're trying to develop it for fun, good luck! It's a big challenge.
0
 

Accepted Solution

by:
cmpalmer earned 200 total points
ID: 1450327
I have implemented this exact function in a MUD type RPG chat program I am writing.  I'm not going to post the source code, but here is how I did it:

I'm using the Microsoft Chat control which gives you (fairly) easy access to IRC channels.

I wrote a simple drawing program for lines, text, color, boxes, circles and fills.  Kind of like Windows Paint.  This should be trivial for you.

Everytime an element is painted, I send a message through the IRC channel containing the data needed to recreate the paint action.  For example, a line might be:

<PNT>:L,X1,Y1,X2,Y2,Width,Color

And a clear screen might be:

<PNT>:CLS

My chat program recognizes messages with a <PNT> header as whiteboard commands and doesn't display them as text.  The next entry in the header (after the colon) tells what kind of paint action.  Then, I just parse the information from the message and re-draw it on the client whiteboard.

I also store each paint command in a collection, clearing the collection at each CLS.  If a client gets out of sync, it can send an "update me" message and receive all of the current drawing elements.  I can also write the contents of the collection to file to create my own metafile where drawings can be saved and loaded.  When one client loads a drawing, each line is sent to everyone and the picture is recreated.  Users can also lock out CLS messages.

The MS Chat control is a bit weird, but easily picked up.  I used a program called WIRCSRV, which is a Shareware IRC server, to do my local and small scale testing (and will be using it for the final version also, since I don't want to be flooding IRC channels with <PNT> messages :-)

Hope this gives you a framework!!

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question