#pragma comment(lib, "user32.lib")
extern "C" int __stdcall MessageBeep(unsigned int);
void main()
{
   MessageBeep(0);
}

Example 1: Compile this code for mixed mode and pure mode and compare the IL and IAT entries that the compiler generates.

Back to Article