VB6 函数名中的 & 符号的意义? [英] Significance of an ampersand in VB6 function name?

查看:11
本文介绍了VB6 函数名中的 & 符号的意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚收到一堆遗留的 VB6 (!) 代码,我不断看到在名称末尾用 & 符号声明的函数,例如,Private Declare Function ShellExecute&....

I just got a bunch of legacy VB6 (!) code dumped on me and I keep seeing functions declared with an ampersand at the end of the name, for example, Private Declare Function ShellExecute& . . ..

我无法找到对此意义的答案,也无法检测到任何使用中的模式或由此命名的函数的签名.

I've been unable to find an answer to the significance of this, nor have I been able to detect any pattern in use or signature of the functions that have been named thusly.

任何人都知道那些尾随的&符号对编译器是否意味着什么,或者至少是否有一些我遗漏的约定?到目前为止,我把它写成一个奇怪的程序员,但我想确定它背后是否有任何意义.

Anyone know if those trailing ampersands mean anything to the compiler, or at least if there's some convention that I'm missing? So far, I'm writing it off as a strange programmer, but I'd like to know for sure if there's any meaning behind it.

推荐答案

表示函数返回一个Long(即32位整数)值.

It means that the function returns a Long (i.e. 32-bit integer) value.

相当于

Declare Function ShellExecute(...) As Long

后缀的完整列表如下:

Integer %
Long    &
Single  !
Double  #
Currency @
String  $

这篇关于VB6 函数名中的 & 符号的意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆