FILE: Javadraw.exe MSMQ Java Drawing Sample Using SafeArrays

Last reviewed: March 6, 1998
Article ID: Q176817
The information in this article applies to:
  • Microsoft Message Queue Server version 1.0

SUMMARY

The JavaDraw sample demonstrates how to implement a distributed drawing application using the Microsoft Software Development Kit (SDK) 2.0 for Java and Microsoft Message Queue Server (MSMQ) ActiveX components. The sample code sends and receives MSMQ messages that store drawings using Safearrays, character data as strings, and a "clear screen" message to both the sender and receiver.

The sample also demonstrates how to handle MSMQ ActiveX Events in Java.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ Javadraw.exe (size: 44090 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

The sample prepares and sends one message for the entire stroke (drawing between mouse-down and mouse-up). It demonstrates an object-oriented approach that sends and receives different data types using Java.

NOTE: In order to compile the sample code, you must use the latest Java compiler included in SDK 2.0. Before you build the sample, run the JActiveX tool on MSMQ type library (Mqoa.dll) to generate Java wrapper classes for MSMQ ActiveX components.

REFERENCES

For more information on MSMQ Asynchronous Receive in Java, see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q176815
   TITLE     : MSMQ Asynchronous Receive Using Java SDK 2.0

The JactiveX tool, SafeArrays and Variants are described in the Microsoft SDK for Java 2.0 documentation available at this address:

   http://www.microsoft.com/java/sdk/

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Syed Yousuf, Microsoft Corporation
Keywords          : MQJava MQProg
Version           : WINNT:1.0
Platform          : winnt
Issue type        : kbfile
Solution Type     : kbsample


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.