jaymz@free.fr wrote: [...]
What's the exact syntact to correctly export class static variable from a dll ?
Exporting a variable is not the problem, what you did is fine. It will work if you try to access this variable from a native Windows dll. The problem is that winebuild does not know how to *import* a variable from another builtin library. For more details see this thread: http://www.winehq.com/hypermail/wine-devel/2002/12/0005.html
That means you have to link with the MFC library in the Unix sense to get these variable references resolved correctly.