Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
res Add source files 4 years ago
connectdlg.cpp Add source files 4 years ago
connectdlg.h Add source files 4 years ago
drawarea.cpp Add source files 4 years ago
drawarea.h Add source files 4 years ago
drawdlg.cpp Add source files 4 years ago
drawdlg.h Add source files 4 years ago
logindlg.cpp Add source files 4 years ago
logindlg.h Add source files 4 years ago
makefile Add source files 4 years ago
mqf_draw.dsp Add source files 4 years ago
mqf_draw.mak Add source files 4 years ago
mqf_draw.vcproj Add source files 4 years ago
mqfdraw.cpp Add source files 4 years ago
mqfdraw.h Add source files 4 years ago
mqfdraw.rc Add source files 4 years ago
readme.txt Add source files 4 years ago
resource.h Add source files 4 years ago
stdafx.cpp Add source files 4 years ago
stdafx.h Add source files 4 years ago

readme.txt

Sample: mqf_DRAW

Purpose:
This application is a port of the "standard" multi_dest_draw MSMQ sample application to C using
the MSMQ SDK.
The application basically allows the user to send/receive line drawings to/from other draw
applications.
Note that the other implementation of this "line drawing" protocol in VB inter-operates with
this sample.

A private text based format is used to encode line-drawing information.

Requirements:

MSMQ 3.0 or later must be installed


Overview:
When a mqf_DRAW application is started, the user is prompted to specify his "login" name --
this can be any string and is used to create a local queue by that name.

If the user is working on a DS enabled computer, he will be asked to choose whether he
would like to open a public or a private local receiving queue.
After creating and opening the local queue an asynchronous message handler is invoked to
monitor that queue: arriving messages are interpreted as line drawings and displayed on the
form. Than the user can choose the remote queues he wants to be connected too. The queues
can be either public or private. On the public case the user is asked to enter a remote
queue label. On the private case the user is asked to enter a remote queue name and the remote
computer name. Clicking on the "Add Queue" button adds the queue to the queue's list.

If the user is working on a DS disabled computer, local private queue will be used
for receiving messages. And the user will be able to connect to private queues only.

After clicking the "Attach" button everything drawn will be sent to the remote queues.
The picture on the form allows the user to draw lines on its client area by dragging and
clicking the left mouse button. Clicking the right button erase the screen.
These mouse movements are captured and translated into a series of line coordinates.
The coordinates are echoed on the form using standard C Line commands and also sent to the
added queues. Likewise text can be entered.