Microsoft KB Archive/176817

= Javadraw.exe MSMQ Java Drawing Sample Using SafeArrays =

Article ID: 176817

Article Last Modified on 11/17/2005

-

APPLIES TO


 * Microsoft Message Queue Server 1.0

-



This article was previously published under Q176817



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 files are available for download from the Microsoft Download Center:

Javadraw.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The sample prepares and sends one message for the whole stroke (drawing between mouse-down and mouse-up). It demonstrates an object-oriented approach that sends and receives different data types using Java. Note 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.