Announcement

Collapse
No announcement yet.

What is the PBWin equivalent pf "TypeName" in VB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Ok, so how do you call this function?

    FUNCTION TypeName(BYVAL oObject AS IUNKNOWN) AS STRING
    END FUNCTION

    MyString = TypeName(??????????)

    Oh sorry I didn't see this:
    Object get mypage.AllPageItems to myIndesignObjects
    object get myIndesignObjects.firstitem to myIndesignObject
    . . .
    myType = TypeName(myIndesignObject) ' e.g. I want to know if it is a TextFrame or ImageRectangle

    Comment


    • #22
      There IS a technique you can use in a true compiled EXE and that is to EXPORT the sub/function name but it is a security risk that a normal binary does not have. There is in fact trickery when writing DLLs to not use EXPORTS for the functions you call which make the DLL a lot harder to hack or gain access to. You make a virtual table of procedure addresses and get that table on loading the DLL and from the caller you use each address to call your function but this is the extreme other end of the original question in this topic.
      hutch at movsd dot com
      The MASM Forum - SLL Modules and PB Libraries

      http://www.masm32.com/board/index.php?board=69.0

      Comment

      Working...
      X