Re: How to define Structure like C in VB

From: vbgnr (vbgnr_at_programmer.net)
Date: 03/01/04


Date: Tue, 02 Mar 2004 02:28:28 +0800

On Mon, 01 Mar 2004 09:31:25 -0800, Bob O`Bob <filterbob@yahoogroups.com>
wrote:

> Mike D Sutton @ Work wrote:
>
>> You'll need to declare a UDT that has the same structure as the
>> structure you're
>> receiving and use RtlMoveMemory()/CopyMemory() to
>> write the data you receive from SNMP into it.
>
> In almost all cases of moving data to/from UDT instances,
> VB's intrinsic LSet can be made to work just fine.

hi Bob, thanks for your reply, please see my post to Mike, any idea?
thanks again!



Relevant Pages

  • Re: Error message about my user defined type
    ... > I use this to declare variables in my form code which works. ... UDT, the UDT needs defined as Public in the class module. ... is Private, you can't declare a Public UDT in it. ... of the class map to a member of the UDT. ...
    (microsoft.public.vb.general.discussion)
  • Re: Need Help with DLL Variable Access
    ... If you declare a Public variable inside a class ... then the complier automatically replaces it with equivalent Property Get and ... Let/Set interfaces, i.e. there's no difference. ... Given that access to your UDT class member is then the result of a procedure ...
    (microsoft.public.vb.general.discussion)
  • Re: Probably a stupid UDT question, but...
    ... To use a UDT in many forms you need to declare it in a Module. ... > When I try to declare variables in form modules I get the error above. ...
    (microsoft.public.vb.general.discussion)
  • Re: Error message about my user defined type
    ... > UDT, the UDT needs defined as Public in the class module. ... > is Private, you can't declare a Public UDT in it. ... > project and declare a UDT as Public in a .bas file. ...
    (microsoft.public.vb.general.discussion)
  • Re: Passing large number of variables to function
    ... You can declare the Type Publicly, but Dim the variables of that type ... Microsoft MVP - Excel ... > These Subs have to pass a large number of variables of different types ... > I could solve this by making a UDT, but the problem is that this UDT then ...
    (microsoft.public.excel.programming)