I'm a beginner in C++, learning making a DLL.
I prepared two files: beepdll.cpp and beepdll.def
I set a project named beepdll in Visual Studio 2005 C++ Win32.
At this time, I did Build(in Release).
beepdll.dll was created, but beepdll.lib was not, which should be created.
I cannot have configured out the reason.
I prepared two files: beepdll.cpp and beepdll.def
Code:
// beepdll.cpp
#include <windows.h>
// Entry Point
BOOL WINAPI DllMain(HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)
{
return TRUE;
}
// beep
void __stdcall beep(DWORD dwCounter)
{
DWORD loop;
for(loop=0; loop<dwCounter; loop++)
{
Beep(400, 100);
Sleep(1000);
}
}
Code:
; beep.def
LIBRARY beepdll
EXPORTS
beep @3
I set a project named beepdll in Visual Studio 2005 C++ Win32.
At this time, I did Build(in Release).
beepdll.dll was created, but beepdll.lib was not, which should be created.
I cannot have configured out the reason.