Using GUI app as dll (wxWidgets 3.x)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Using GUI app as dll (wxWidgets 3.x)

Vincent R.
Hi,

I have found several doc about how to declare a gui application as a dll:

But I have also found this : https://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application that doesn't use a thread.

For now I am trying the approach found inside the svn.wxwidgets.org/ but is it still the right approach ?





--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

Re: Using GUI app as dll (wxWidgets 3.x)

oneeyeman
Hi, Vincent,

On Mon, May 15, 2017 at 6:28 AM, Vincent R. <[hidden email]> wrote:

> Hi,
>
> I have found several doc about how to declare a gui application as a dll:
>
> http://stackoverflow.com/questions/1893731/how-to-create-dll-library-on-windows-with-wxwidgets
> that redirects to
> http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/dll/
> But I have also found this :
> https://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application that doesn't use
> a thread.
>
> For now I am trying the approach found inside the svn.wxwidgets.org/ but is
> it still the right approach ?

Yes, this is a recommended solution.
Just look at the samples/dll for an example.

Thank you.

>
>
>
>
>
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to [hidden email]
> or visit http://groups.google.com/group/wx-users

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

Re: Using GUI app as dll (wxWidgets 3.x)

Iwbnwif Yiw
In reply to this post by Vincent R.


On Monday, May 15, 2017 at 11:28:12 AM UTC+1, Vincent R. wrote:


For now I am trying the approach found inside the <a href="http://svn.wxwidgets.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTtraRRBT3mqWypwuC7p3PS0dK2g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTtraRRBT3mqWypwuC7p3PS0dK2g&#39;;return true;">svn.wxwidgets.org/ but is it still the right approach ?


It is possibly worth mentioning that SVN is no longer the master repository for wxWidgets. The DLL sample (and the rest of the repository) can now be found at Github (https://github.com/wxWidgets/wxWidgets/tree/master/samples/dll).

I doubt much has changed in this particular example, but it is worth getting the library from Github rather than SVN anyway.


--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

Re: Using GUI app as dll (wxWidgets 3.x)

Stefano Mtangoo
In reply to this post by Vincent R.

Hi,
On Monday, May 15, 2017 at 1:28:12 PM UTC+3, Vincent R. wrote:
Hi,

I have found several doc about how to declare a gui application as a dll:

<a href="http://stackoverflow.com/questions/1893731/how-to-create-dll-library-on-windows-with-wxwidgets" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com%2Fquestions%2F1893731%2Fhow-to-create-dll-library-on-windows-with-wxwidgets\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxd2gZSGe2dCBjHx3aCWZMX5ic4w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstackoverflow.com%2Fquestions%2F1893731%2Fhow-to-create-dll-library-on-windows-with-wxwidgets\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxd2gZSGe2dCBjHx3aCWZMX5ic4w&#39;;return true;">http://stackoverflow.com/questions/1893731/how-to-create-dll-library-on-windows-with-wxwidgets
that redirects to <a href="http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/dll/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2Fviewvc%2Fwx%2FwxWidgets%2Ftrunk%2Fsamples%2Fdll%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2Q2GmiKkAi05hOBQ-mdqMjz6kbA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2Fviewvc%2Fwx%2FwxWidgets%2Ftrunk%2Fsamples%2Fdll%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2Q2GmiKkAi05hOBQ-mdqMjz6kbA&#39;;return true;">http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/dll/
But I have also found this : <a href="https://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.wxwidgets.org%2FCreating_A_DLL_Of_An_Application\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgWrcvqSBIMD80xcwARMY3NMH4DQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.wxwidgets.org%2FCreating_A_DLL_Of_An_Application\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgWrcvqSBIMD80xcwARMY3NMH4DQ&#39;;return true;">https://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application that doesn't use a thread.

For now I am trying the approach found inside the <a href="http://svn.wxwidgets.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTtraRRBT3mqWypwuC7p3PS0dK2g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvn.wxwidgets.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGTtraRRBT3mqWypwuC7p3PS0dK2g&#39;;return true;">svn.wxwidgets.org/ but is it still the right approach ?
I would like to bring to your attention this useful repo: https://github.com/T-Rex/wxModularApp

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

wxPropertyGrid does not allow a Category being a child of a property

Stefan Battmer
In reply to this post by oneeyeman
Hi everyone,

my code did just fire the following assert in the
'wxPropertyGridPageState' class:

         // Parent of a category must be either root or another category
         // (otherwise Bad Things might happen).
         wxASSERT_MSG( scheduledParent == NULL ||
                       scheduledParent == m_properties ||
                       scheduledParent->IsCategory(),
                  wxS("Parent of a category must be either root or
another category."));

I was wondering why this limitation exists. Ignoring it results in no
properties being added below the category that did fire the assert. Is
this 'by design' or a leftover from the integration of the control?
Could this be fixed?

Thanks and regards,

Stefan Battmer

-----------------------------------------------------------------
Upcoming Events:
14.-15. June: Vision, Robotics & Motion, Veldhoven, The Netherlands
26.-28. September: PPMA, Birmingham, Great Britain
-----------------------------------------------------------------

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Uwe Furtner, Erhard Meier

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

wxPropertyGrid does not allow a Category being a child of a property

Stefan Battmer


Hi everyone,

my code did just fire the following assert in the
'wxPropertyGridPageState' class:

         // Parent of a category must be either root or another category
         // (otherwise Bad Things might happen).
         wxASSERT_MSG( scheduledParent == NULL ||
                       scheduledParent == m_properties ||
                       scheduledParent->IsCategory(),
                  wxS("Parent of a category must be either root or
another category."));

I was wondering why this limitation exists. Ignoring it results in no
properties being added below the category that did fire the assert. Is
this 'by design' or a leftover from the integration of the control?
Could this be fixed?

Thanks and regards,

Stefan Battmer

-----------------------------------------------------------------
Upcoming Events:
14.-15. June: Vision, Robotics & Motion, Veldhoven, The Netherlands
26.-28. September: PPMA, Birmingham, Great Britain
-----------------------------------------------------------------

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Uwe Furtner, Erhard Meier

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users
Reply | Threaded
Open this post in threaded view
|

Re: wxPropertyGrid does not allow a Category being a child of a property

Artur Wieczorek

properties being added below the category that did fire the assert. Is
this 'by design' or a leftover from the integration of the control?
It looks it's by design. For instance, logic of rendering apparently depends on this constraint - it can be seen that category property being a child of an ordinary property is displayed improperly (not entirely with gray background).


Logic of traversing the properties (with iterators) could also depend on this design assumption.

Regards,
AW

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to [hidden email]
or visit http://groups.google.com/group/wx-users