visualization tool kit (vtk)

gambrinus

Grünschnabel
hallo,

ich hab in Visual Studio 2005 vtk korrekt installiert. Wenn ich ein Konsolenprogramm schreibe, dann funktioniert es auch wunderbar, aber wenn ich eine Windows Forms Application erstellen will, brauche ich lediglich einen vtk-header zu includen, und schon kommen hunderte von warnings und errors.
einige Beispiele:

C:\Programme\VTK5.0\source\Filtering\vtkTriangle.h(60) : warning C4272: 'vtkTriangle::Triangulate' : is marked __declspec(dllimport); must specify native calling convention when importing a function.

stdafx.obj : error LNK2028: unresolved token (0A00000B) "private: virtual char const * __clrcall vtkObjectBase::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkObjectBase@@$$FEBMPBDXZ) referenced in function "void __clrcall `dynamic initializer for 'const vtkObjectBase::`local vftable'''(void)" (?__E_SvtkObjectBase@@6B@@@YMXXZ@?A0x71047d4b@@$$FYMXXZ)
AssemblyInfo.obj : error LNK2028: unresolved token (0A00000B) "private: virtual char const * __clrcall vtkObjectBase::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkObjectBase@@$$FEBMPBDXZ) referenced in function "void __clrcall `dynamic initializer for 'const vtkObjectBase::`local vftable'''(void)" (?__E_SvtkObjectBase@@6B@@@YMXXZ@?A0xada3651c@@$$FYMXXZ)
test2.obj : error LNK2028: unresolved token (0A00000B) "private: virtual char const * __clrcall vtkObjectBase::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkObjectBase@@$$FEBMPBDXZ) referenced in function "void __clrcall `dynamic initializer for 'const vtkObjectBase::`local vftable'''(void)" (?__E_SvtkObjectBase@@6B@@@YMXXZ@?A0xa850982b@@$$FYMXXZ)
test2.obj : error LNK2019: unresolved external symbol "public: static void __clrcall vtkObjectBase::eek:perator delete(void *)" (3vtkObjectBase@@$$FSMXPAX@Z) referenced in function "protected: virtual void * __clrcall vtkObjectBase::`vector deleting destructor'(unsigned int)" (_EvtkObjectBase@@$$FMAMPAXI@Z)
AssemblyInfo.obj : error LNK2001: unresolved external symbol "public: static void __clrcall vtkObjectBase::eek:perator delete(void *)" (3vtkObjectBase@@$$FSMXPAX@Z)

Ich hab alle nötigen Bibliotheke und include-Dateien angegeben, wie ich es ja auch schon bei einer Konsolenanwendung gemacht hab, wo es keine Probleme gab.

Aber was läuft dann bei der Windows Forms Application schief?
 
Zurück