I am currently building a small dll that makes your pc "beep". I am using it with another language called gml. My gml syntax is correct.
There are no errors in the code but my pc refuses to "beep".
Here is my c++ code:
dllmain.cpp:
Code:
#include "dll.h"
#include <string>
#include <cstdlib>
#include <windows.h>
export double bp(int pitch,int length) {
return Beep(pitch,length);
}
dll.h:
Code:
#ifndef _DLL_H_
#define _DLL_H_
#define export extern "C" __declspec (dllexport)
#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */
class DLLIMPORT DllClass
{
public:
DllClass();
virtual ~DllClass(void);
private:
};
#endif /* _DLL_H_ */
Any help would be appreciated.