i was just trying to create a device in a WinForms application but the
linker throw two error:
Code: Select all
rrlicht.h(303) : warning C4272: 'irr::createDevice' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
irrlicht.h(314) : warning C4272: 'irr::createDeviceEx' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
Code: Select all
#pragma comment( lib, "irrlicht.lib" )
#pragma once
#include <irrlicht.h>
namespace configdlg {
using namespace Irrlicht;
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void) { .......};