franck22000 Posted September 29, 2011 Share Posted September 29, 2011 Thanks you so much patte ! looking forward for the final release Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
Patrik Posted December 21, 2011 Author Share Posted December 21, 2011 Update: - Some bugs and issues fixed. (hopefully not so many new have been introduced) - Better font management - New gui component: GridView Font Management: - Will automatically load all fonts found in the Data/Fonts folder on creation - Can load external fonts with the command loadExternalFont Example PFWGui* gui = new PFWGui(hwnd); // create the gui gui->getFontManager()->loadExternalFont("E:/fonts/COOLVETI.TTF"); // load an external font GuiFont* fnt1 = new GuiFont("COOLVETI.TTF", 24); // create a font object using the loaded font, loaded fonts are called by their filename, case sensitive fnt1->setColor(255,0,0); // sets the color of the font to red GuiButton* btn = new GuiButton(10, 140, "Quit game", 140, 50); // create a button btn->setFont( fnt1 ); // assign the font to the button The updated library is available in the first post Quote Link to comment Share on other sites More sharing options...
Clackdor Posted December 21, 2011 Share Posted December 21, 2011 You have great timing. Hoping to play with this in the next couple of days or weeks. Hows it coming with rendering this on top of 2D images rendered by LW? Quote Link to comment Share on other sites More sharing options...
Patrik Posted January 5, 2012 Author Share Posted January 5, 2012 I've now setup an google code page for this project. So the source code is available there if someone is interested. Link in first post or here http://code.google.com/p/pfwgui/ Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted January 7, 2012 Share Posted January 7, 2012 Wow very nice GUI ;D But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors?? Can you tell me why? Thanks Quote Link to comment Share on other sites More sharing options...
Scott Richmond Posted January 7, 2012 Share Posted January 7, 2012 Congratulations and thank you on the OS release! I'll definitely look at integrating it over the next month or two when the GUI phase comes around. Quote Programmer, Modeller Intel Core i7 930 @ 3.5GHz | GeForce 480 GTX | 6GB DDR3 RAM | Windows 7 Premium x64 Visual Studio 2008 | Photoshop CS3 | Maya 2009 Website: http://srichnet.info Link to comment Share on other sites More sharing options...
Patrik Posted January 7, 2012 Author Share Posted January 7, 2012 Congratulations and thank you on the OS release! I'll definitely look at integrating it over the next month or two when the GUI phase comes around. Wow very nice GUI ;D But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors?? Can you tell me why? Thanks Thank you. Could you send me the error lines? Did you download it from the zip file attached in the first forum post or from the google code page? The zip file found on the first page is outdated and should have been removed. (Will do it now.) If you downloaded it from the forum post please download it from the google code page instead. If not, did you remember to link the opengl32.lib in your project also as mentioned in the readme? Quote Link to comment Share on other sites More sharing options...
Pixel Perfect Posted January 7, 2012 Share Posted January 7, 2012 Have downloaded both the lib and the source code and would like to thank you for the work you have put into this Patte and for making it freely available. Will be trying it out as soon as I've finished the current work I'm doing. Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
ParaToxic Posted January 7, 2012 Share Posted January 7, 2012 Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote #pragma comment(lib,"PFWGui.lib") #pragma comment(lib,"opengl32.lib") Now I become 71 errors: 1>------ Erstellen gestartet: Projekt: guitest, Konfiguration: Release Win32 ------ 1>Kompilieren... 1>guitest.cpp 1>engine.cpp 1>Verknüpfen... 1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiWindow.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert. 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert. 1>libcmt.lib(tidtable.obj) : error LNK2005: __encode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(tidtable.obj) : error LNK2005: __decode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(invarg.obj) : error LNK2005: __invoke_watson ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __initterm_e ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(setlocal.obj) : error LNK2005: __configthreadlocale ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "public: void __thiscall type_info::_type_info_dtor_internal_method(void)" (?_type_info_dtor_internal_method@type_info@@QAEXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert. 1>libcmt.lib(typinfo.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert. 1>libcmt.lib(mlock.obj) : error LNK2005: __unlock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(mlock.obj) : error LNK2005: __lock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(printf.obj) : error LNK2005: _printf ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert. 1>libcmt.lib(crt0.obj) : error LNK2005: _mainCRTStartup ist bereits in MSVCRT.lib(crtexe.obj) definiert. 1>libcmt.lib(errmode.obj) : error LNK2005: ___set_app_type ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func ist bereits in MSVCRT.lib(MSVCR90.dll) definiert. 1>LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden. 1>MSVCRT.lib(cinitexe.obj) : warning LNK4098: Standardbibliothek "libcmt.lib" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden. 1>guitest.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall PFWGui::PFWGui(struct HWND__ *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0PFWGui@@QAE@PAUHWND__@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiScrollbar.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(Signal0.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiLayout.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(PFWGui.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)". 1>C:\Users\Stan\Desktop\guitest\Release\guitest.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise. 1>Das Buildprotokoll wurde unter "file://c:\Users\Stan\Desktop\guitest\Release\BuildLog.htm" gespeichert. 1>guitest - 71 Fehler, 38 Warnung(en) ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ========== (Sry it's in german ;D) Would be nice when you help me ;D Thanks Quote Link to comment Share on other sites More sharing options...
Patrik Posted January 7, 2012 Author Share Posted January 7, 2012 Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote #pragma comment(lib,"PFWGui.lib") #pragma comment(lib,"opengl32.lib") Firstly the the library you downloaded from the first forum post can't be used with the sources downloaded from the google code page. It's an old version and will not match the header files anymore. I've now deleted that one from the post and the only way to get the library now is via the google code page. One reason that the old library did not work for you may have been that it was compiled for a visual studio version that you are not using. Therefore I have now created a google code page for the project where you can download the sources and compile the project yourself for whatever version of visual studio you are using. There is a readme file included with the sources with instructions on how to compile it. In summary: - Delete the precompiled library that you have downloaded. - Download and compile the sources yourself. - Link the library you have compiled to your project along with opengl32.lib and include the src folder. Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted January 7, 2012 Share Posted January 7, 2012 Thanks ;D I tried to compile the new project and had to include ftgl src and freetype src but now my compiler says that he can't find ftgl.lib?I don't know where to download ftgl.lib and in the pack I downloaded isn't that file. EDIT: okey I had to compile it too ;D I compiled and it created a lib ,so I made a new project with LEBuilder and set the include path to the src folder and copied PFWGui.lib in the project folder and added this lib with #pragma comment... to the project.Now I become 47 errors:( All the errors are from the file GuiFontManager and GuiFont (obj) (Only a few lines) PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)". 1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)". 1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)". Quote Link to comment Share on other sites More sharing options...
Patrik Posted January 10, 2012 Author Share Posted January 10, 2012 I'm not familiar with LEBuilder, I myself is using Visual Studio for my projects. But the problem seems to be that when you compiled the pfwgui library it was not able to find the ftgl library you have compiled. So it now knows which functions should be available, which it found out from the header files, but as it could not find the library (.lib file) it does not know how to use them. Please check that the ftgl.lib or (ftgl_d.lib if you are compilng in debug) is included correctly when you compile pfwgui. If you use the included visual studio projects go to the project options page and check that the include folders are setup correctly (found under the "C++ -> General" section and under the "Librarian -> General" section) they need to match where the ftgl header files are found and where it's compiled library is found. Also make sure that the name matches the settings, it can vary depending on what version you have compiled ftgl.lib for release and ftgl_d.lib for debug version. You also need to set the runtime library option (/MT, /MD) of the projects when compiling depending on your needs, it should match the other libraries used in your main project. Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted January 11, 2012 Share Posted January 11, 2012 I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that. That's too bad because I like your gui very much I would try to make it running. One question.Are GuiFont.h and GuiFontManager use Soil?? Quote Link to comment Share on other sites More sharing options...
Patrik Posted January 11, 2012 Author Share Posted January 11, 2012 I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that. That's too bad because I like your gui very much I would try to make it running. One question.Are GuiFont.h and GuiFontManager use Soil?? No soil is used for loading images and is used by the GuiImage component. I'm suspecting ftgl because that is used both in the GuiFont and GuiFontManager. And also from the error messages it seems like ftgl would be missing. Both FTTextureFont & FTFont are from the ftgl library. I tried recreating the problem myself. I tried compiling pfwgui without providing ftgl.lib and it did not complain but built successfully. But then when trying to link pfwgui into my project, I got the same errors. 1>------ Build started: Project: PFWTest, Configuration: Debug Win32 ------ 1>Linking... 1>PFWTest.obj : error LNK2019: unresolved external symbol "public: bool __thiscall GuiFontManager::setDefaultFont(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?setDefaultFont@GuiFontManager@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z) referenced in function "private: void __thiscall GuiFontManager::loadFonts(void)" (?loadFonts@GuiFontManager@@AAEXXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(char const *)" (?Attach@FTFont@@UAE_NPBD@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::Attach(char const *)" (?Attach@FTFont@@UAE_NPBD@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::GlyphLoadFlags(int)" (?GlyphLoadFlags@FTFont@@UAEXH@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::GlyphLoadFlags(int)" (?GlyphLoadFlags@FTFont@@UAEXH@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::CharMap(enum FT_Encoding_)" (?CharMap@FTFont@@UAE_NW4FT_Encoding_@@@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::CharMap(enum FT_Encoding_)" (?CharMap@FTFont@@UAE_NW4FT_Encoding_@@@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::CharMapCount(void)const " (?CharMapCount@FTFont@@UBEIXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::CharMapCount(void)const " (?CharMapCount@FTFont@@UBEIXZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual enum FT_Encoding_ * __thiscall FTFont::CharMapList(void)" (?CharMapList@FTFont@@UAEPAW4FT_Encoding_@@XZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual enum FT_Encoding_ * __thiscall FTFont::CharMapList(void)" (?CharMapList@FTFont@@UAEPAW4FT_Encoding_@@XZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::FaceSize(void)const " (?FaceSize@FTFont@@UBEIXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual unsigned int __thiscall FTFont::FaceSize(void)const " (?FaceSize@FTFont@@UBEIXZ) referenced in function "public: __thiscall GuiFont::GuiFont(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,bool,bool)" (??0GuiFont@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H_N1@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::FaceSize(unsigned int,unsigned int)" (?FaceSize@FTFont@@UAE_NII@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual bool __thiscall FTFont::FaceSize(unsigned int,unsigned int)" (?FaceSize@FTFont@@UAE_NII@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Depth(float)" (?Depth@FTFont@@UAEXM@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Depth(float)" (?Depth@FTFont@@UAEXM@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float,float)" (?Outset@FTFont@@UAEXMM@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float,float)" (?Outset@FTFont@@UAEXMM@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float)" (?Outset@FTFont@@UAEXM@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::Outset(float)" (?Outset@FTFont@@UAEXM@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall FTFont::UseDisplayList(bool)" (?UseDisplayList@FTFont@@UAEX_N@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual void __thiscall FTFont::UseDisplayList(bool)" (?UseDisplayList@FTFont@@UAEX_N@Z) referenced in function "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Ascender(void)const " (?Ascender@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Ascender(void)const " (?Ascender@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Descender(void)const " (?Descender@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Descender(void)const " (?Descender@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::LineHeight(void)const " (?LineHeight@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::LineHeight(void)const " (?LineHeight@FTFont@@UBEMXZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(wchar_t const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PB_WHVFTPoint@@1@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(wchar_t const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PB_WHVFTPoint@@1@Z) referenced in function __ehhandler$??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(char const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PBDHVFTPoint@@1@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTBBox __thiscall FTFont::BBox(char const *,int,class FTPoint,class FTPoint)" (?BBox@FTFont@@UAE?AVFTBBox@@PBDHVFTPoint@@1@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(wchar_t const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPB_WHVFTPoint@@@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(wchar_t const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPB_WHVFTPoint@@@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(char const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPBDHVFTPoint@@@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual float __thiscall FTFont::Advance(char const *,int,class FTPoint)" (?Advance@FTFont@@UAEMPBDHVFTPoint@@@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(wchar_t const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PB_WHV2@1H@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(wchar_t const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PB_WHV2@1H@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(char const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PBDHV2@1H@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual class FTPoint __thiscall FTFont::Render(char const *,int,class FTPoint,class FTPoint,int)" (?Render@FTFont@@UAE?AVFTPoint@@PBDHV2@1H@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall FTFont::Error(void)const " (?Error@FTFont@@UBEHXZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall FTFont::Error(void)const " (?Error@FTFont@@UBEHXZ) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2001: unresolved external symbol "protected: virtual class FTGlyph * __thiscall FTTextureFont::MakeGlyph(struct FT_GlyphSlotRec_ *)" (?MakeGlyph@FTTextureFont@@MAEPAVFTGlyph@@PAUFT_GlyphSlotRec_@@@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "protected: virtual class FTGlyph * __thiscall FTTextureFont::MakeGlyph(struct FT_GlyphSlotRec_ *)" (?MakeGlyph@FTTextureFont@@MAEPAVFTGlyph@@PAUFT_GlyphSlotRec_@@@Z) 1>PFWGui_d.lib(GuiFontManager.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FTTextureFont::~FTTextureFont(void)" (__imp_??1FTTextureFont@@UAE@XZ) referenced in function "public: virtual void * __thiscall FTTextureFont::`scalar deleting destructor'(unsigned int)" (??_GFTTextureFont@@UAEPAXI@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FTTextureFont::~FTTextureFont(void)" (__imp_??1FTTextureFont@@UAE@XZ) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall FTFont::BBox(char const *,float &,float &,float &,float &,float &,float &)" (__imp_?BBox@FTFont@@QAEXPBDAAM11111@Z) referenced in function "public: float __thiscall GuiFont::getTextHeight(char *)" (?getTextHeight@GuiFont@@QAEMPAD@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTPoint::FTPoint(void)" (__imp_??0FTPoint@@QAE@XZ) referenced in function "public: void __thiscall GuiFont::print(float,float,char const *,class GuiColor *)" (?print@GuiFont@@QAEXMMPBDPAVGuiColor@@@Z) 1>PFWGui_d.lib(GuiFont.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTPoint::FTPoint(double,double,double)" (__imp_??0FTPoint@@QAE@NNN@Z) referenced in function "public: void __thiscall GuiFont::print(float,float,char const *,class GuiColor *)" (?print@GuiFont@@QAEXMMPBDPAVGuiColor@@@Z) 1>E:\Dev\Leadwerks projects\PFWTest2\PFWTest\Debug\PFWTest.exe : fatal error LNK1120: 29 unresolved externals 1>Build log was saved at "file://e:\Dev\Leadwerks projects\PFWTest2\PFWTest\PFWTest\Debug\BuildLog.htm" 1>PFWTest - 55 error(s), 0 warning(s) Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted January 11, 2012 Share Posted January 11, 2012 So what to do?When I compiled the lib to FPWGui.lib ftgl.lib was included ,because without I became a compiler error. Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted January 13, 2012 Share Posted January 13, 2012 Patte: Where do you downloaded FTGL and freetype? Maybe I compile a other version of FTGL and freetype . EDIT: Now I have only 1 error : Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall FTFont::BBox(char const *,float &,float &,float &,float &,float &,float &)" (__imp_?BBox@FTFont@@QAEXPBDAAM11111@Z)". What to do? Thanks Quote Link to comment Share on other sites More sharing options...
Patrik Posted January 15, 2012 Author Share Posted January 15, 2012 I've been using ftgl 2.1.3-rc5 from http://sourceforge.net/projects/ftgl/develop with freetype 2.4.4 http://www.freetype.org/ Quote Link to comment Share on other sites More sharing options...
flachdrache Posted January 16, 2012 Share Posted January 16, 2012 Its some windows interns ( winuser.h iirc ).. write this after your "pragma once" #pragma once // Windows headers, LEAN_AND_MEAN after engine.h (pointless?!) #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <winuser.h> #endif Quote AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3 zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5 Xxploration FPS in progress ... Link to comment Share on other sites More sharing options...
ParaToxic Posted January 17, 2012 Share Posted January 17, 2012 Always the same error with (dllimport) FFont::BBox(...) Quote Link to comment Share on other sites More sharing options...
DigitalHax Posted March 2, 2012 Share Posted March 2, 2012 Any more finished yet? Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely. Link to comment Share on other sites More sharing options...
ParaToxic Posted March 10, 2012 Share Posted March 10, 2012 Hey first thanks to franck for the compiled lib.Very good GUI,very good system,I hope franck can upload the lib for other users,who have errors with there own libs. Is there a way to create a GUI Window without the hwnd of the LE window.I mean only the GUI window on the desktop.I tried to use the HWND of the desktop with GetDesktopWindow in the contructor of the GUI ,but it doesn't work. Quote Link to comment Share on other sites More sharing options...
franck22000 Posted March 10, 2012 Share Posted March 10, 2012 try this: LE::SetAppTitle("myapp"); HWND _ApplicationWindow = FindWindow(0, "myapp"); then create the GUI context using the _ApplicationWindow it should work Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
ParaToxic Posted March 11, 2012 Share Posted March 11, 2012 Yes it was written in your example ,but I mean to the PFWGui Window on the Desktop like a Win32 Window. Quote Link to comment Share on other sites More sharing options...
franck22000 Posted March 11, 2012 Share Posted March 11, 2012 oh i see ! im pretty sure that this is not possible, you can only render the gui components inside the openGL viewport ! Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
tjheldna Posted March 12, 2012 Share Posted March 12, 2012 Hi, This looks exactly what I'm after for my project and I've almost got this intergrated this into my project. I am however stuck on which I think is the last thing. When the application is loaded the windows, buttons etc loads, but only the text is showing (widget functionality is working too). Things like the title bar and backgrounds are totally transparent or just not there. I've stepped through the code and looks like its going along the path it should. Here is the code I'm using to initialise it. if(gui)gui->draw() is being called right after RenderFramework() in my main loop. HWND appWindow = FindWindow(0, "Test"); gui =new PFWGui(appWindow, "Fonts/"); btn = new GuiButton(300,300, "Start New Game", 110, 50); window = new GuiWindow(100,100, 200, 200); window->setBaseColor(0,0,255); window->setBackgroundColor(0,0,255); window->setBorderColor(255,0,0); btn->setBackgroundColor(255,0,0); btn->setBaseColor(255,0,0); Could my problem be some project linking issue or something I may have missed while coding? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.