<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
El 20/04/2010 0:23, Xiaofeng Z escribió:
<blockquote cite="mid:COL123-W398E04BE35AEE6B0FD1F47E50B0@phx.gbl"
 type="cite">
  <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>By
using managed C++, integrating vtk with Window Forms application is
very simple.  You can find an example here:<br>
 <br>
  <a moz-do-not-send="true"
 href="http://se.xzing.org/2006/09/29/using-vtk-in-net-application-part-i/">http://se.xzing.org/2006/09/29/using-vtk-in-net-application-part-i/</a><br>
  <br>
Xiaofeng Z<br>
</blockquote>
Hello again!<br>
<br>
I was trying to compile the example of Xiaofeng Z, but I have some
problems on linking:<br>
<br>
1&gt;------ Build started: Project: vtkSphere, Configuration: Debug
Win32 ------<br>
1&gt;Linking...<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__DefWindowProcA@16 referenced in
function "long __stdcall vtkWin32OutputWindowWndProc(struct HWND__
*,unsigned int,unsigned int,long)"
(?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ@Z)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__MoveWindow@24 referenced in function
"long __stdcall vtkWin32OutputWindowWndProc(struct HWND__ *,unsigned
int,unsigned int,long)"
(?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ@Z)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__SendMessageA@16 referenced in
function "protected: static void __cdecl
vtkWin32OutputWindow::AddText(char const *)"
(?AddText@vtkWin32OutputWindow@@KAXPBD@Z)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__ShowWindow@8 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__CreateWindowExA@48 referenced in
function "protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__RegisterClassA@4 referenced in
function "protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__GetStockObject@4 referenced in
function "protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__LoadCursorA@8 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__LoadIconA@8 referenced in function
"protected: static int __cdecl vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__GetClassInfoA@12 referenced in
function "protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)"
(?Initialize@vtkWin32OutputWindow@@KAHXZ)<br>
1&gt;vtkCommon.lib(vtkWin32OutputWindow.obj) : error LNK2019:
unresolved external symbol __imp__MessageBoxA@16 referenced in function
"protected: void __thiscall vtkWin32OutputWindow::PromptText(char const
*)" (?PromptText@vtkWin32OutputWindow@@IAEXPBD@Z)<br>
1&gt;vtkCommon.lib(vtkDebugLeaks.obj) : error LNK2001: unresolved
external symbol __imp__MessageBoxA@16<br>
1&gt;C:\Documents and Settings\Raul\Mis documentos\Visual Studio
2008\Projects\SphereAppCS\Debug\vtkSphere.dll : fatal error LNK1120: 11
unresolved externals<br>
<br>
<br>
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?<br>
Version of  VTK 5.4.<br>
<br>
Many thanks<br>
</body>
</html>