[vtkusers] VTK and Windows Forms Application, is that Possible?
Raúl Ferriz
raul at torresyvalero.com
Wed Apr 21 04:41:51 EDT 2010
El 20/04/2010 0:23, Xiaofeng Z escribió:
> By using managed C++, integrating vtk with Window Forms application is
> very simple. You can find an example here:
>
> http://se.xzing.org/2006/09/29/using-vtk-in-net-application-part-i/
>
> Xiaofeng Z
Hello again!
I was trying to compile the example of Xiaofeng Z, but I have some
problems on linking:
1>------ Build started: Project: vtkSphere, Configuration: Debug Win32
------
1>Linking...
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__DefWindowProcA at 16 referenced in function "long
__stdcall vtkWin32OutputWindowWndProc(struct HWND__ *,unsigned
int,unsigned int,long)" (?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ at Z)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__MoveWindow at 24 referenced in function "long
__stdcall vtkWin32OutputWindowWndProc(struct HWND__ *,unsigned
int,unsigned int,long)" (?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ at Z)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__SendMessageA at 16 referenced in function
"protected: static void __cdecl vtkWin32OutputWindow::AddText(char const
*)" (?AddText at vtkWin32OutputWindow@@KAXPBD at Z)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__ShowWindow at 8 referenced in function "protected:
static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__CreateWindowExA at 48 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__RegisterClassA at 4 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__GetStockObject at 4 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__LoadCursorA at 8 referenced in function "protected:
static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__LoadIconA at 8 referenced in function "protected:
static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__GetClassInfoA at 12 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize at vtkWin32OutputWindow@@KAHXZ)
1>vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019: unresolved
external symbol __imp__MessageBoxA at 16 referenced in function "protected:
void __thiscall vtkWin32OutputWindow::PromptText(char const *)"
(?PromptText at vtkWin32OutputWindow@@IAEXPBD at Z)
1>vtkCommon.lib(vtkDebugLeaks.obj) : error LNK2001: unresolved external
symbol __imp__MessageBoxA at 16
1>C:\Documents and Settings\Raul\Mis documentos\Visual Studio
2008\Projects\SphereAppCS\Debug\vtkSphere.dll : fatal error LNK1120: 11
unresolved externals
I have checked that linker paths are ok, also include paths, and I have
changed compatibility of CLR as said on the link and include libs on
dependency to linker. But still does not work. Any advice?
Version of VTK 5.4.
Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100421/79aa19f5/attachment.htm>
More information about the vtkusers
mailing list