Re: How to define Structure like C in VB

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bob O`Bob (filterbob_at_yahoogroups.com)
Date: 03/01/04


Date: Mon, 01 Mar 2004 09:31:25 -0800

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.

        Bob

-- 
looking for work again  <http://obob.com/bob/resume/>


Relevant Pages

  • Re: Thoughts on Collections
    ... string operations. ... It works to declare the UDT in a public-not-creatable ... but can if it's declared in a public class ...
    (microsoft.public.vb.general.discussion)
  • Re: Thoughts on Collections
    ... string operations. ... It works to declare the UDT in a public-not-creatable ... like to mark that class hidden for typelib readers, ... Declare the UDT as a Struct in a TypeLibrary ...
    (microsoft.public.vb.general.discussion)
  • 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)