Kod:
// Motory.cpp : main project file.
#pragma warning(disable : 4996) // Disable warnings about some functions in VS 2005
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers

#include <stdio.h>
#include <tchar.h>
#include <conio.h>
#include <process.h>
#include "USMCDLL.h"
#include "stdafx.h"
#include "Form1.h"


[STAThreadAttribute]

USMC_Devices DVS;
DWORD Dev;

using namespace System;
using namespace Motory;

Chybová hlášky(Error):
.\Motory.cpp(14) : error C2337: 'STAThreadAttribute' : attribute not found
.\Motory.cpp(16) : error C2146: syntax error : missing ';' before identifier 'DVS'
.\Motory.cpp(16) : error C2470: 'USMC_Devices' : looks like a function definition, but there is no parameter list; skipping apparent body
.\Motory.cpp(16) : fatal error C1004: unexpected end-of-file found