   [.net] HELP dlls
  Hi,I've created a dll and when I export it to the main function and compile it I have the following error:error C2061: syntax error : identifier 'CDXUTControl'Here's the declaration and definition in the dll:__declspec(dllexport) void    CALLBACK OnGUIEvent( UINT nEvent, int nControlID, CDXUTControl* pControl, void* pUserContext );__declspec(dllexport)void    CALLBACK OnGUIEvent( UINT nEvent, int nControlID, CDXUTControl* pControl, void* pUserContext ){    switch( nControlID )    {   case IDOK: break;}}And here's the declaration in the header:__declspec(dllimport) void    CALLBACK OnGUIEvent( UINT nEvent, int nControlID, CDXUTControl* pControl, void* pUserContext );Any ideas how to slove this error???????10x   
  It looks you forgot to include the approbiate header file:#include <DXUTgui.h>;  yo dude 10x sooo much. I've included the file in the dll but i suppouse i had to put it in the main func. Problem solved :D   