The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Support for Visual J++ 6.0

Visual Studio 2005

The Microsoft extensions in Visual J++ 6.0 that are listed in this topic are fully supported in Visual J#.

To locate reference information for the extensions, see the Visual J++ 6.0 documentation or the Microsoft SDK for Java in the MSDN online library (

  • J/Direct (for making calls into native DLLs):

    • @dll.import

    • @dll.struct

    • @dll.structmap

  • Java-language/COM, for example:

    • @com.class

    • @com.interface

    • @com.method

    • @com.parameter

    • @com.register

  • Conditional compilation:

    • #if, #elif, #endif, #define

    • #warning, #error

    • @conditional

      Used to mark methods whose calls can be conditionally removed from the generated code.


      The @conditional feature works only if the attributed function and the caller are part of the same compilation unit. The recommended technique for using conditional compilation with Visual J# is to use the .NET Framework class ConditionalAttribute.

  • Delegate and multicast delegate support:

    • and classes

    • delegate and multicast keywords

  • Other @ directives:

    • @security

    • @hidden

    • @deprecated

The Visual J# compiler does not provide the following features that are specific to Java-language bytecodes in the Visual J++ 6.0 compiler:

  • Ability to import class information from Java-language bytecodes (.class files).

  • Ability to generate .class files from Java-language sources.

  • Support for CLASSPATH for resolving referenced classes at compile time; use the /reference (Import Metadata) compiler option instead.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft