> -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] > > Dear Jochen, > I found that the code in tutorials are all writen in QT,I wonder > if there are some code writen in MFC (MSVC++ 2005). because I don't > know how to render the window in MFC.How can I convert the following > code into MFC: > /////////////////////////////////////////////////////////////////////// > ///////////////////////// > // Create a RenderWindow > QmitkRenderWindow renderWindow; [...]
Hi James, Please always write to the mitk-users list, then everyone can benefit from questions and answers. To your question: The MITK-MainApp uses the Qt toolkit as it's graphical interface library instead of MFC. You can't use the Qmitk classes like QmitkRenderWindow with MFC. Currently, there are render window classes for Qt3, Qt4 and FLTK (quite old). We will propably never add MFC support, since MITK is a multi-plattform toolkit and MFC is only available on Windows. If you need to use MFC in your application, you can still use everything that is in the /mitk/ folder, just not the parts in the Qmitk, QApplications and QFunctionalities folders. VTK offers a MFC RenderWindow class that you could adapt to MITK, but that is quite some work. I would suggest that you use Qt for your MITK development. There is a free version of Qt3 available on SourceForge: http://sourceforge.net/projects/qtwin/. Qt4 can be obtained from http://www.qtsoftware.com/ > By the way,I downloaded the binary exe for > windows:"MITK-0.10.0-win32-vc71.exe" can I use the libraries in VC2005 > ? or I must rebuild the source code using CMake? The binary package contains only a precompiled MainApp application. If you want to develop your own program, you have to download the source, configure it with CMake and compile it yourself. Best Regards, Jochen ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
