[vtkusers] MFC app in VS .NET 2003
rex073
rex073 at 163.com
Fri Dec 23 23:45:44 EST 2005
Dear Dr.Ogden
Yep. You should try add std:: before key words of std IOs.
>Thanks for the suggestion.
>
>I tried this, but the result was the same with the addition of a macro
>redefinition warning. It seems that VTK_USE_ANSI_STDLIB is already defined
>in vtkConfigure.h. I will try using the prebuilt stuff to see if I can get
>that to work.
>
>Cheers,
>
>Kent
>
>Kent Ogden PhD
>Assistant Professor, Radiology
>SUNY Upstate Medical University
>750 E. Adams Street
>Syracuse, NY 13210
>
>email: ogdenk at upstate.edu
>voice: (315) 464-5083
>fax: (315) 464-5095
>
>>>> "de Boer Ingo" <I.deBoer at polytec.de> 12/23/2005 3:05:51 AM >>>
>Hi,
>
>I think you should build your app with the
>VTK_USE_ANSI_STDLIB compiler flag.
>
>greets
> Ingo
>
>
>---
>Dr.-Ing. Ingo H. de Boer
>
>Polytec GmbH
>Polytec-Platz 1-7, 76337 Waldbronn, Germany
>phone: ++49 7243 604 106
>fax : ++49 7243 604 255
>
>
>> -----Original Message-----
>>
>> Hi all,
>>
>> I am brand new to using vtk, I would like to add vtk
>> capabilities to an
>> existing MFC app created in VS .NET 2003. I am starting by
>> trying to build
>> the simplest of MFC apps, but without success. I perused the
>> mailing list
>> archive but couldn't find an answer for my problems. What I
>> have done so
>> far:
>>
>> Downloaded VTK-4.4-LatestRelease.zip, unzipped to C:\VTK
>> Used CMake 2.2 to create the .Net 2003 solution (including
>> building the
>> dll's)
>> Open the solution, built ALL_BUILD, no errors (about 15 minutes on my
>> machine)
>> Moved the created dll's into Windows/System32
>>
>> In VS .NET:
>>
>> Added all the directories for the includes in the
>> Tools/Options/Projects/VC++ Directories (C:\vtk,
>> C:\vtk\common, etc. etc.)
>> Did the same for the lib files (C:\vtk\bin\debug)
>> (Should I have built as the release version instead of Debug?)
>>
>> Then built a simple SDI MFC app called testvtk, put a button on the
>> interface, and tried to add the code from the cone.cxx file in the
>> testvtkView.cpp to get the cone to display with a button
>> push. The header
>> files are all found just fine, but I get many (>100) errors in files
>> provided in MSVC .NET ?!?! These seem to be related to IO
>> and utilities,
>> some examples of where the errors occur:
>>
>> c:\Program Files\Microsoft Visual Studio .NET
>> 2003\Vc7\include\xutility(862): error C2143: syntax error :
>> missing ';'
>> before '<'
>> c:\Program Files\Microsoft Visual Studio .NET
>> 2003\Vc7\include\streambuf(320): error C2146: syntax error :
>> missing ';'
>> before identifier 'xsputn'
>> c:\Program Files\Microsoft Visual Studio .NET
>> 2003\Vc7\include\xstring(1564): error C2947: expecting '>' to
>> terminate
>> template-argument-list, found '>'
>>
>> etc. etc. ad infinitum (ok more than 100 at which point it
>> terminates).
>> These are related to the #includes from the cone.cxx file,
>> the errors appear
>> when the includes are put into the testvtkView.cpp file.
>>
>> Is there a setting I need to change that will prevent this?
>> None of the
>> errors seem to be in any vtk files, but in MS files that they are
>> referencing. Any help would be greatly appreciated . .
>>
>>
>> Kent
>>
>>
>> Kent Ogden PhD
>> Assistant Professor, Radiology
>> SUNY Upstate Medical University
>> 750 E. Adams Street
>> Syracuse, NY 13210
>>
>> email: ogdenk at upstate.edu
>> voice: (315) 464-5083
>> fax: (315) 464-5095
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
= = = = = = = = = = = = = = = = = = = =
致
礼!
rex073
rex073 at 163.com
2005-12-24
More information about the vtkusers
mailing list