Results 1 to 10 of 14

Thread: [C] The lousy random question thread

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by kung foo man View Post
    The function is used as callback, so it's nice to explicitly set the calling convention. But since its stdcall (=standard calling convention), its not really needed.

    Every big "project" defines there own types like DWORD (WinAPI) for "unsigned int". I suggest you use just the plain "unsigned int", so you dont depend on windows-include-files.
    Okay, i guess its better to stay on these conventions, since they are only for callbacks (at least for me now)

    EDIT: i solved the next after looking over it for some minutes ;D
    Code:
    	resFileLumpHandler_sp lpLumpHandler = lumpHandlerListPtr , lpTemp;	// Delete the lump handler list.
    	// is the same as:
    	resFileLumpHandler_sp lpLumpHandler = lumpHandlerListPtr;	// Delete the lump handler list.
    	resFileLumpHandler_sp lpTemp;	// Delete the lump handler list.
    Last edited by serthy; 9th June 2013 at 14:52.

Posting Permissions

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