Results 1 to 21 of 21

Thread: [vb6] AddressOf for Class, Form, UC methods

Hybrid View

  1. #1

  2. #2
    Junior Member
    Join Date
    Mar 2016
    Posts
    16

    Re: [vb6] AddressOf for Class, Form, UC methods

    Address of variable is not around method entry address. If you call initMethod() as the first call right below sub declaration, then you will have only few adresses in callstack and one of this is entry point of your method (few call address back). But as I said, I am not sure how VB uses callstack, it's only idea.

  3. #3
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,797

    Re: [vb6] AddressOf for Class, Form, UC methods

    Quote Originally Posted by izero76 View Post
    Address of variable is not around method entry address.
    You can pass a parameter to Init, and get its address. You can move relatively this address in order to get other data from the stack.
    Quote Originally Posted by izero76 View Post
    If you call initMethod() as the first call right below sub declaration, then you will have only few adresses in callstack and one of this is entry point of your method (few call address back).
    Look here:
    Name:  Form_load.jpg
Views: 3670
Size:  27.1 KB
    This is Form_Load handler. You can change something and it will be affected on the Form_Load code. Same for any other method.

  4. #4
    Junior Member
    Join Date
    Mar 2016
    Posts
    16

    Re: [vb6] AddressOf for Class, Form, UC methods

    Sure, you are right, my mistake. And few bytes back from passed parameter's address we (probably) have entry point.

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