[vtkusers] error when using RemoveActor()

REGAT-BARREL Aurélien arbvtk at yahoo.fr
Thu May 13 03:50:34 EDT 2004


Hi,
On both ANSI and UNICODE some functions names are translated.
Open vtk dlls with dependencywalker and look for GetClassName, RemoveProp, etc...
You will find GetClassNameA, RemovePropA, ...
http://www.chez.com/regatbar/getclassname.png
(copy-paste the link on IE if you fails to directly open it).
So, as your code is also translated to GetClassNameA, RemovePropA, it works.
But, if you #undef GetClassName or #undef RemoveProp, or if you #define UNICODE it will not work, as he compiler will respectively look for RemoveProp or RemovePropW.
I made a proposal to correct this.
 
    de Boer Ingo <I.deBoer at polytec.de> wrote:
    Hi,
    
    > The right solution : remove windows.h from vtk headers !!!
    Is this only for the UNICODE version or for the normal aswell ?
    I made some change to the vtk sources to make it compile in
    UNICODE. Maybe this one should be added ?!
    
    http://www.vtk.org/Bug/bug.php?op=show&bugid=602
    
    greets
    Ingo



Aurélien REGAT-BARREL
		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040513/81a45b45/attachment.htm>


More information about the vtkusers mailing list