Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.77 KB

File metadata and controls

38 lines (27 loc) · 1.77 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Unicode (Visual Basic)
Unicode
07/20/2015
vb.Unicode
Unicode, external references
Declare statement [Visual Basic], marshalling strings
Unicode keyword [Visual Basic]
Unicode, marshalling strings
0021d5ff-3209-444e-8497-420f3e6ee075

Unicode (Visual Basic)

Specifies that Visual Basic should marshal all strings to Unicode values regardless of the name of the external procedure being declared.

When you call a procedure defined outside your project, the Visual Basic compiler does not have access to the information it must have in order to call the procedure correctly. This information includes where the procedure is located, how it is identified, its calling sequence and return type, and the string character set it uses. The Declare Statement creates a reference to an external procedure and supplies this necessary information.

The charsetmodifier part in the Declare statement supplies the character set information to marshal strings during a call to the external procedure. It also affects how Visual Basic searches the external file for the external procedure name. The Unicode modifier specifies that Visual Basic should marshal all strings to Unicode values and should look up the procedure without modifying its name during the search.

If no character set modifier is specified, Ansi is the default.

Remarks

The Unicode modifier can be used in this context:

Declare Statement

Smart Device Developer Notes

This keyword is not supported.

See also