[英]VB.net equivalent of C++ Code
What is the VB.net equivalent of the following code: 什么是VB.net以下代码的等效项:
extern void * PASCAL EXPORT rclib_get_alarmmsg( int type, int num );
Particularly I want to know what the *
does. 我特别想知道
*
作用。 I assume it's some kind of ByRef
business but I don't know! 我认为这是某种
ByRef
业务,但我不知道!
Just to give a bit more context, the following code: 为了提供更多的上下文,下面的代码:
extern short PASCAL EXPORT rclib_set_alarm(short ,short mactype = 0);
roughly translates to: 大致翻译为:
Declare Function rclib_set_alarm Lib "rbcutlib.dll" (ByVal FlibHndl As Short) As Short
So basically I'm trying to do the same translation with the first line of code but I'm not sure what the implications of the void
and *
are. 因此,基本上,我正在尝试对第一行代码进行相同的翻译,但是我不确定
void
和*
的含义是什么。
void* is IntPtr. void *是IntPtr。 rclib_get_alarmmsg return pointer to some structure (alarmmsg).
rclib_get_alarmmsg返回指向某些结构的指针(alarmmsg)。 void* is type-unsafe pointer.
void *是类型不安全的指针。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.