Hi,
i have read the article in this site on how create ad using a custom DLL.
I have tried to reproduce the example and it works.
My problem now is that when i try to do the same thing for my need it doesn't works.

I try to be brief. Suppose we have this structure:

DLL project consists of this files.

A.h (we can also suppose that this file does nothing, is empty)
B.h
B.cpp

The file header B.h includes A.h.

Then there is a Win32 console project that consists of a simple file Test.cpp that consists of this code:

#pragma comment(lib, "MyDLL.lib")

#include <iostream>
#include "..\MyDLL\B.h"

int main()
{
Function();
std::cout << Add(32, 58) << "\n";
return(1);
}

(Function and Add are function of my custom dll)

If i try to compile it there's some problems. If B.h not includes A.h there isn't problems.

Can someone tell me what is wrong? How can i solve this problem?