PDA

View Full Version : nBeep v03


mcgarrah
9th April 2002, 13:59
Justin,

Found two things in nBeep v.03.

First, the debug build does not include "dsound.lib" in the debug
project file. Next, the "_DllMainCRTStartup" declaration should be
wrapped with NDEBUG ifdef's so beep will build in Debug mode other-
wise you get an error about cannot find "_main" during the build.

#ifdef NDEBUG
BOOL WINAPI _DllMainCRTStartup(HANDLE hInst,
ULONG ul_reason_for_call,
LPVOID lpReserved)
{
return TRUE;
}
#endif

I'm halfway interested in writing a sin() function to replace out
the runtime library version used and see how much smaller the EXE
would come down too.

This was just too funny. The guys in house couldn't stop rolling
when I showed them it running.

--
Michael McGarrah