OleMode J/Direct Sample

This sample is located in \Samples\JDirect\olemode.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample application is similar to the Guidgen utility which generates unique GUIDs and copies them to the clipboard.

Unlike Guidgen, however, this version parses the GUID without braces ({}). This is useful for pasting the GUID into IDL (Interface Definition Language) files. In addition to showing how to use the ole keyword to assist with OLE's special calling conventions, it shows how even raw memory access, when necessary, can be easy using @dll.import.

Using the Sample

To run the sample

Run Go.bat in the \Samples\JDirect\Olemode directory.

Key Project Files

NewGuid.java

This class shows how to use the auto keyword on all methods except where specifically overridden by the ole keyword.

Technologies Demonstrated

Microsoft J/Direct

© 1999 Microsoft Corporation. All rights reserved. Terms of use.