CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Properties of an object

    Hi,

    I have an object (it will be of varying types) and I would like to access its properties, without knowing what they are. e.g.

    for each property in object
    MyFunc(property.name, property.value)
    next

    Is this possible?

    Thanks,

    - Gavin
    [email protected]


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Properties of an object

    MSDN article Q172988 describes how to programmatically retrieve all members of a DLL class using TLBinf32.DLL.
    AFAIK this works only for COM objects, not for objects that your create in your program from Private Class modules.


  3. #3
    Join Date
    Jun 1999
    Location
    Switzerland
    Posts
    58

    Re: Properties of an object

    Hi Gavin,

    Is it possible for you to be somewhat more precise ?
    It's hard to quess what you exactly want. What kind of project is it?

    Jan


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured