INFO: JScript .NET Cannot Call Windows API or Exported DLL functions (306773)



The information in this article 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.

Modification Type:MajorLast Reviewed:10/30/2002
Keywords:kbDSupport kbinfo KB306773 kbAudDeveloper