<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>The files compile OK on my VS2008 after removing the symbol
VTKINTERACTIONSTYLE_EXPORT (not defined in my project). Sorry I
can't be more helpful.</p>
<p>John.<br>
</p>
<br>
<div class="moz-cite-prefix">On 27/04/2016 15:38, 徐志華 wrote:<br>
</div>
<blockquote cite="mid:E04FCFF88A854A70BF3F1710E0AD2ED4@zionladynb"
type="cite">
<pre wrap="">Attached is the header file and implementation file that cause error
I test it with VS 2008, and it caused Error C2660, but, test it with VS
2015, It's OK, and no Error message generates.
-----Original Message-----
From: Cory Quammen [<a class="moz-txt-link-freetext" href="mailto:cory.quammen@kitware.com">mailto:cory.quammen@kitware.com</a>]
Sent: Wednesday, April 27, 2016 9:15 PM
To: 徐志 華
Cc: <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Subject: Re: [vtkusers] Error C2660: 'vtkObject::operatpr new': do not take
3 patameters
>From the code you have shared, I do not see what would cause the error
you report.
Could you post the header file and the portion of the code in the
implementation file (.cxx) leading up to and including
vtkStandardNweMacro?
Thanks,
Cory
On Wed, Apr 27, 2016 at 4:19 AM, 徐志 華 <a class="moz-txt-link-rfc2396E" href="mailto:zionman.hsu@gmail.com"><zionman.hsu@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I had a class derived from vtkInteractorStyleRubberBandPick defined as
following:
class myAreaSelector : public vtkInteractorStyleRubberBandPick
{
public:
vtkTypeMacro(myAreaSelector, vtkInteractorStyleRubberBandPick);
static myAreaSelector *New();
.....
};
And implemented this new function with:
vtkStandardNewMacro(myAreaSelector);
Which leads to error C2660 : 'vtkObject::operator new' not take 3
</pre>
</blockquote>
<pre wrap="">parameters
</pre>
<blockquote type="cite">
<pre wrap="">
Is there any wrong doings with this implementation?
Any suggestion to overcoming this error message is welcome.
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>