Visual C++ .NET: Fatal Error C1191
'dll' can only be imported at global scope
More likely, you have dropped a trailing '}' somewhere. I had put a ')' in for a '}' in a .h file. I got error messages in the .cpp file that included the .h file.
Hope this helps somebody.
dwilson