c++builder-xe6

How to show a secondary form on taskbar using FMX C++?

廉价感情. 提交于 2020-01-06 23:43:42
问题 I'm with a little problem when trying to show more than one form on taskbar on the same time. I found I need to use the following: WS_EX_APPWINDOW So I search a little bit more about and then found it: class TForm2 : public TForm { __published: // IDE-managed Components private: // User declarations public: // User declarations __fastcall TForm2(TComponent* Owner); void __fastcall CreateParams(Controls::TCreateParams &Params); }; void __fastcall TForm2::CreateParams(Controls::TCreateParams

How to show a secondary form on taskbar using FMX C++?

孤街醉人 提交于 2020-01-06 23:43:14
问题 I'm with a little problem when trying to show more than one form on taskbar on the same time. I found I need to use the following: WS_EX_APPWINDOW So I search a little bit more about and then found it: class TForm2 : public TForm { __published: // IDE-managed Components private: // User declarations public: // User declarations __fastcall TForm2(TComponent* Owner); void __fastcall CreateParams(Controls::TCreateParams &Params); }; void __fastcall TForm2::CreateParams(Controls::TCreateParams

How to show a secondary form on taskbar using FMX C++?

左心房为你撑大大i 提交于 2020-01-06 23:43:13
问题 I'm with a little problem when trying to show more than one form on taskbar on the same time. I found I need to use the following: WS_EX_APPWINDOW So I search a little bit more about and then found it: class TForm2 : public TForm { __published: // IDE-managed Components private: // User declarations public: // User declarations __fastcall TForm2(TComponent* Owner); void __fastcall CreateParams(Controls::TCreateParams &Params); }; void __fastcall TForm2::CreateParams(Controls::TCreateParams

XE6 How do you check if a UnicodeString is null?

蹲街弑〆低调 提交于 2019-12-14 03:53:54
问题 I'm using C++ Builder XE6 . I'm getting a UnicodeString as a parameter and I wish to check if the string is set to NULL, and not an empty string. I've tried to do some simple compares to see if the param is null, but seem to be failing. I'm using the == operator which doesn't seem to be working, which makes me think it is overloaded. I've tried: if (searchString == NULL) In the debugger view, it shows the value of { NULL } in the local variables. If I add the variable to the watch list, then

Wrong overload selected for stream manipulator

吃可爱长大的小学妹 提交于 2019-12-10 11:46:42
问题 Here's the code: #include <iostream> #include <iomanip> #include <typeinfo> #if 0 std::ostream &foo(std::ostream &os, std::ios_base &(*x)(std::ios_base &), bool show_id = false) { if ( show_id ) os << "(" << typeid(x).name() << ") "; return os << x; } #endif template<typename T> std::ostream &foo(std::ostream &os, T const &t, bool show_id = false) { if ( show_id ) os << "(" << typeid(t).name() << ") "; return os << t; } int main() { foo(std::cout, std::hex) << 255 << std::endl; foo(std::cout,