# Re: 我有一个C 的structure ,想要改成VB能用的宣告,有人可以帮忙吗?

Posted by Thousand on August 24, 1999 at 11:10:30:

In Reply to: 我有一个C 的structure ,想要改成VB能用的宣告,有人可以帮忙吗? posted by 天儿 on August 23, 1999 at 16:51:18:

C的Struct型态实际上即为Class
所以在VB里新增Entry的 Class Modual
Public ID As Long
Public lpEntry As Object
测试
Dim a As New Entry
Dim b As New Entry
Dim c As Object
a.ID = 10
b.ID = 20
Set a.lpEntry = b
set b.lpentry = Nothing
Set c = a
MsgBox c.ID
Set c = a.lpEntry
MsgBox c.ID

Follow Ups:

- Thanks!! 天儿 11:34:38 8/25/99 (0)