2 Questions

[purple]1. What is [b]long pointer[/b]? What are the differences between [b]long pointer[/b] and [b]pointer[/b]?

2. What is [blue]calling convention[/blue]? Please provide details. What does the following calling conventions mean?

[red][b]int [black]WINAPI[/black] WinMain(...)[/red][/b]
[red][b]LRESULT [black]CALLBACK[/black] WindowFunction(...)[/red][/b]
[/purple]
[hr][purple]~Donotalo()[/purple]

Comments

  • : [purple]1. What is [b]long pointer[/b]? What are the differences between [b]long pointer[/b] and [b]pointer[/b]?
    :
    : 2. What is [blue]calling convention[/blue]? Please provide details. What does the following calling conventions mean?
    :
    : [red][b]int [black]WINAPI[/black] WinMain(...)[/red][/b]
    : [red][b]LRESULT [black]CALLBACK[/black] WindowFunction(...)[/red][/b]
    : [/purple]
    : [hr][purple]~Donotalo()[/purple]
    :
    [blue]
    1. long pointer and pointer are remnants from 16-bit world. long pointer is a segment:offset pointer. pointer is just offset pointer (in SMALL memory model). In 32-bit world they are both 32-bit offsets. There is only one segment for all code and data in 32-bit (4Gb in size).

    2. Calling convention includes the following things:

    - how parameters are passed:
    - on stack in order you see them
    - on stack in order opposite as you see them
    - in registers (and in stack, if no more regs)

    - who cleans up the stack (if parameters are passed)
    - it may be the code which calls a function
    - it may be the code inside of a function you are calling
    [/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion