take a look at this:
#pragma intrinsic(memcmp, memcpy, memset, strcat, strcmp, strcpy, strlen)
#define MAKEIP(b4,b3,b2,b1) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
#define RENDIAN_WORD(W) ((HIBYTE(WORD(W)) >> 0) | (LOBYTE(WORD(W)) << 8))
#define DATA_SIZE 4096
what does it do? where to learn to code something like this? (i never saw a book which treated this stuff. ;D
#pragma intrinsic(memcmp, memcpy, memset, strcat, strcmp, strcpy, strlen)
#define MAKEIP(b4,b3,b2,b1) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
#define RENDIAN_WORD(W) ((HIBYTE(WORD(W)) >> 0) | (LOBYTE(WORD(W)) << 8))
#define DATA_SIZE 4096
ive forgot to post it as code >.< sorry for that
Quote from: vonLandenhausen on November 16, 2004, 12:17 PM
ive forgot to post it as code >.< sorry for that
Modify your post, don't repost... just look at MSDN (http://msdn.microsoft.com)
The "intrinsic" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_predir_intrinsic.asp) pragma declaration allows functions to be called inline with argument lists generated at compile-time.
Amazingly enough, I searched MSDN with "#pragma intrinsic" and I found it. Amazing.
Wasn't there a thread almost exactly like this?