Microsoft KB Archive/306773

= INFO: JScript .NET Cannot Call Windows API or Exported DLL functions =

Article ID: 306773

Article Last Modified on 10/30/2002

-

APPLIES TO


 * Microsoft JScript .NET

-



This article was previously published under Q306773



SUMMARY
The JScript .NET language does not support calling Windows API functions or exported DLL functions.



MORE INFORMATION
The JScript .NET compiler only supports calling .NET classes and COM classes (using COM Interop). It does not support calling C-style exported functions or Windows API functions. This is by design.

In order to call a Windows API or C-style exported function, you have to use a language such as Microsoft Visual Basic .NET, Microsoft Visual C# .NET, or Managed C++ to wrap it in a class accessible to JScript .NET.

Additional query words: JScript version 7

Keywords: kbinfo KB306773

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.