Choosing function parameter types - pointers or objects?



At the moment, I only write functions which accept pointers as
arguments in order to change a value, but I've realised it would often
be a lot more effiecient to pass a pointer rather than an actual
object.
I know this question is a bit vague, but I was wondering about any
rules / guidelines / style issues, for when to use pointers, and when
not to, in your function parameters?

I'm also interested in any grey areas, or even off-topic functions that
have been written like in the win32 API for instance, but I doubt
anyone else is.

Cheers, Matt

.



Relevant Pages

  • Re: Function Pointers
    ... pointers in typedefs. ... it's also quite handy for "window procedures" in Win32 API ... I don't often write Win32 programs, but when I do, I use a ... I also prefer to see the "pointerlyness" of pointers, ...
    (comp.lang.c)
  • Re: Star Commander for Windows?
    ... it was the first implementation of the WIN32 API. ... Even now, many Windows installers are 16-Bit ... Actually, XP64 can run Win16 applications, but only if they have an installer program. ... The operating system will then convert 16-bit pointers to 32-bit pointers. ...
    (comp.sys.cbm)