Message "#pragma module" or "#module" directive must precede any language text. Description The #pragma module or #module directive must appear before any declarations. The directive will be ignored. User Action Move the directive to the top of the compilation unit.