I always use
Code:
#include <windows.h>
#include <stdlib.h>
#include <d3d9.h>
#include <D3dx9core.h>
#include <D3dx9math.h>
#include <DxErr.h>

#define DLL_USE
#include "adll.h"



The define should help you here