Hello I have done a dll file but Amibroker don't recognize my work .
Even if I press the button "load" (http://www.amibroker.com/guide/w_plugins.html) , the dll don't appear in the plugin's list .
Something is missing in my c++ code ...
Any ideas ?...
Here is my code , I have done it with bloodshed IDE.
Inside the file Testdll.h
Inside the file dllmain.cpp
Even if I press the button "load" (http://www.amibroker.com/guide/w_plugins.html) , the dll don't appear in the plugin's list .
Something is missing in my c++ code ...
Any ideas ?...
Here is my code , I have done it with bloodshed IDE.
Inside the file Testdll.h
Code:
#ifndef _DLL_H_
#define export extern "C" __declspec (dllexport)
#define _DLL_H_
#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_ */
Code:
/* Replace "dll.h" with the name of your header */
#include "Testdll.h"
#include <windows.h>
export double add(double a , double b)
{
return (double)a+b;
}