<DIV>Hello,</DIV>
<DIV>I don't know the problem, but I think it is an issue of the point I have just developed.</DIV>
<DIV>The problem is Win32 specific and is due to macros definitions in <windows.h></DIV>
<DIV>The problem, In my opinion, is that including vtk includes windows.h, and I think it should not be the case.</DIV>
<DIV>Actually, GetClassName, GetProp, SetProp, RemoveProps and certainly others does not exist ! These functions are translated to GetClassNameA, GetPropA, SetPropA and RemovePropA because of the inclusion of <windows.h></DIV>
<DIV>In a normal case, this is not a problem since your RemoveProp call is also translated to RemovePropA.</DIV>
<DIV>But, if you have defined UNICODE, your call is translated to RemovePropW. And you have an error...</DIV>
<DIV>More details about windows.h header:</DIV>
<DIV><A href="http://msdn.microsoft.com/library/en-us/intl/unicode_8zzn.asp">http://msdn.microsoft.com/library/en-us/intl/unicode_8zzn.asp</A><BR></DIV>
<DIV>The easy solution : undef UNICODE or change your RemoveProp call to RemovePropA...</DIV>
<DIV>The right solution : remove windows.h from vtk headers !!!</DIV>
<DIV><BR><B><I>Matt Schmiermund <matt@plasticflow.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Anyone?????<BR><BR>This problem is in the archives, but no one ever<BR>posted a solution. I changed from using RemoveActor()<BR>to RemoveProp() and I am still getting the same error.<BR>Any help would be appreciated.<BR><BR>-Matt Schmiermund<BR><BR>--- Matt Schmiermund <MATT@PLASTICFLOW.COM>wrote:<BR>> I get the following error after adding some<BR>> RemoveActor lines to my program. <BR>> <BR>> Error: Unresolved external<BR>> 'vtkViewport::RemovePropW(vtkProp *)' referenced<BR>> from<BR>> C:\DOCUMENTS AND SETTINGS\ALL<BR>> USERS\DOCUMENTS\PELDOMFLOW\VTKWIDGET.OBJ<BR>> <BR>> <BR>> This looked similar to what happened when I didn't<BR>> have the librarys linking properly, so I have linked<BR>> to all of the following libraries (some of which I<BR>> think are probably unnecessary) and I am still<BR>> getting<BR>> the same error.<BR>>
<BR>> vtkFiltering<BR>> vtkRendering <BR>> vtkCommon <BR>> vtkGraphics <BR>> vtkIO <BR>> vtkImaging <BR>> vtkHybrid <BR>> vtkParallel <BR>> vtkPatented<BR>> vtkqt <BR>> vtkexpat <BR>> vtkfreetype <BR>> vtkftgl <BR>> vtkjpeg <BR>> vtkpng <BR>> vtktiff <BR>> vtkzlib <BR>> <BR>> If anyone knows what I am doing wrong I would<BR>> appreciate any help.<BR>> <BR>> -Matt Schmiermund<BR>> _______________________________________________<BR>> This is the private VTK discussion list. <BR>> Please keep messages on-topic. Check the FAQ at:<BR>> <HTTP: vtkfaq cgi-bin public.kitware.com><BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <HTTP: vtkfaq cgi-bin public.kitware.com><BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers</BLOCKQUOTE><BR><BR>Aurélien REGAT-BARREL<p>
                <hr size=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a>
<br><br>
Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</a>