Re: Which dialog classes can function without a top-level frame?

Sean Tolstoyevski <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CAJkz5pp0RNsqibkUOM79MB=ZEhs5REC3T3+yEhAuV=z+0YH_HA@mail.gmail.com>
I tried this too. This is an example of class-based init.
Outside of the Library, initialization is done in main.
Likewise this causes a segmentation fault.
```c++
#include <wx/init.h>

#include <iostream>

#include "biga/ui/native/about_box.hpp"

int main(int argCount, const char* argList[])
{
wxInitializer initer{argCount, const_cast<char**>(argList)};
if (! initer.IsOk())
{
std::cerr << "Failed to initialize wxWidgets" << std::endl;
return 1;
}
std::cout << "wxwidgets initialized\n";
// init is ok.

biga::ui::native::NativeAboutBox(
"Biga", "v b1.4", "this is a description",
"copyright seantolstoyevski and all contrubitors.", "",
"https://github.com/seantolstoyevski/biga");
return 0;
}
```

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CAJkz5pp0RNsqibkUOM79MB%3DZEhs5REC3T3%2ByEhAuV%3Dz%2B0YH_HA%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.