wxwidgets in a library

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
sukrit_ghorai
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Dec 27, 2021 10:35 pm

wxwidgets in a library

Post by sukrit_ghorai »

Hi

I want to implement wxwidgets in my library but I'm not sure how do I approach the problem.

For example: I'm thinking of creating a library that would output a plot of some data. So, I would implement wxwidgets to do solve the problem.
However, when a user would implement my library in his program, he would have a main function defined in his program.
That would conflict with wxwidgets library implemented in my library. How to deal with these kinds of situations.

Thanks

Sukrit
PB
Part Of The Furniture
Part Of The Furniture
Posts: 3955
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxwidgets in a library

Post by PB »

I think using wxWidgets for a plotting library generally implies the application using the library will be using wxWidgets as well.

That is why there are plotting libraries specific for a GUI library (e.g., wxWidgets, MFC, or Qt) or GUI library neutral plotting libraries with adapters for those GUI libraries.

IMO, integrating a wxWidgets-based control in a non-wxWidgets UI would be non-trivial (but I have no experience with this).
Post Reply