Recent Posts

Pages: [1] 2 3 ... 10
1
Help requests / Re: Visual C Internal Compiler Error
« Last post by UnderPlayer on Yesterday at 16:30:05 »
I just found this
Code: [Select]
If the file has a cxxfe or c1xx path segment, or is msc1.cpp, it is probably a parser error.on the msdn page. Does that mean that the code is correct but something in the C++ Parser compiler code is wrong? Does the error occur on microsoft's side?

MSDN source:
https://docs.microsoft.com/de-de/cpp/error-messages/compiler-errors-1/fatal-error-c1001?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DDE-DE%26k%3Dk(C1001)%26rd%3Dtrue&view=vs-2019

I just realised that I am using C++ 17 but I did not build tgui with TGUI_USE_CPP17
2
Help requests / Visual C Internal Compiler Error
« Last post by UnderPlayer on Yesterday at 14:54:50 »
Hi fellow programmers, artists and humans,

today - experiencing the calmness and beauty of modern programming in C++ - I stumbled upon something. "What was it?" you might ask. And my answer would be: I don't know. It was just there and I had no clue where it came from or what it means. My compiler would give me an oddly unspecific error that reads "Internal Compiler Error". So after a short investigation I came to the conclusion that I still had no idea.

Okay, I will stop that now and give some specific information including a minimal example, that reproduces the error for me.
C++ 17
SFML: 2.5.1
TGUI: 0.8.5
Visual C: 14.21.27702
Visual Studio 2019 16.1.6
Build Config: Debug and Release

The error message (partly, because most of it is german in my case. It just says try contacting microsofts support hotline or change the code in some way.):
Code: [Select]
Error C1001 Internal Compilererror.
(Compilerfile "d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\PackExpander.cpp", line 1764)
 MenuItemTest C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\TGUI\SignalImpl.hpp 148

#include <TGUI/TGUI.hpp>

int main()
{
        auto menu = tgui::MenuBar::create();
        menu->addMenuItem({ "Test" }, true);
        menu->connectMenuItem(
                { "Test" },
                []() { printf_s("works\n"); }
        );
}
 

I'm quite sure that the function used to work for me, but now it does not anymore. I've never encountered that error before and my first bet would be, that something is off, so that the compiler doesn't know how to interpret the code in front of it.

Anyway, I hope someone here has an idea or maybe someone encountered the same problem and knows a solution.

Lars
3
General Discussion / Re: Adding long lines in ChatBox
« Last post by billarhos on 18 July 2019, 19:23:59 »
I change the font and it solved.
4
General Discussion / Re: Adding long lines in ChatBox
« Last post by texus on 18 July 2019, 19:23:20 »
Is it possible that your font just renders that way? Because the only thing the ChatBox should be doing is adding newline characters at the end of the line, I don't think it positions those lines manually.
5
General Discussion / Re: Adding long lines in ChatBox
« Last post by billarhos on 18 July 2019, 19:20:35 »
Well it is not quite overllaping but lines has no gap between.
6
General Discussion / Re: Adding long lines in ChatBox
« Last post by texus on 18 July 2019, 18:39:23 »
Are texts overlapping for you? The lines should just be positioned below each other. It still works with some simple code here.
7
General Discussion / Adding long lines in ChatBox
« Last post by billarhos on 18 July 2019, 15:48:43 »
How can avoid overlaping text lines when i add line that exceed chatbox's width?
8
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 24 June 2019, 19:27:10 »
Quote
You forgot this for all widgets

 ;D
9
General Discussion / Re: Kitchen Sink
« Last post by texus on 24 June 2019, 19:07:55 »
Quote
In gui.txt just add "OpacityDisabled = 0.3" in ChildWindow section and the code will hung  in "mGuiTheme.load("resources/gui.txt");"
I can't reproduce hanging, but last time you said "gave me an exception" so I'm assuming that is still what you mean. The reason is probably because you forgot a semi-colon behind the line (if you catch the tgui::Exception that gets thrown it will likely tell you that parsing failed on that line, maybe even mentioning which character it read). You forgot this for all widgets, but the parser is more forgiving when it is the very last line in the section.
10
General Discussion / Re: Kitchen Sink
« Last post by billarhos on 24 June 2019, 06:22:55 »
Quote
was actually just the text color,
Yes it fixed. :o

My mistake. Sometimes when i am in hurry i act like a drunk. I was meant "ChildWindow"
In gui.txt just add "OpacityDisabled = 0.3" in ChildWindow section and the code will hung  in "mGuiTheme.load("resources/gui.txt");"

Quote
Do you think there should be a downloadable exe
No. I was sending the executable to you because i was thinking that it could help you in the process.
Just like builder-gui, it should be compiled in user side.

For all other stuff like where should be this or that, is really up to you. You can use another free font (smaller) if you like. You can change everything you like. You can put psd in website as you mention if that suits you.
 
Please act as yours.

Pages: [1] 2 3 ... 10