Share via


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 Instrução Declare 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. O Unicode modificador Especifica que o Visual Basic deve realizar marshaling todas as seqüências de valores Unicode e pesquisar o procedimento sem modificar seu nome durante a pesquisa.

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

Comentários

The Unicode modifier can be used in this context:

Declare Statement

Smart Device Developer Notes

This keyword is not supported.

Consulte também

Referência

Ansi (Visual Basic)

Auto (Visual Basic)

Outros recursos

Palavras-chave (Visual Basic)