wx-c-0-9-0-2 (static and dynamic windows)

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 8023
Joined: May 28, 2005 3:28
Contact:

wx-c-0-9-0-2 (static and dynamic windows)

Postby D.J.Peters » Nov 04, 2012 8:41

Last edited by D.J.Peters on Nov 06, 2012 1:46, edited 1 time in total.
Coolman
Posts: 218
Joined: Nov 05, 2010 15:09

Re: wx-c (static windows)

Postby Coolman » Nov 05, 2012 14:16

Thank you for these static libraries. I tested the compilation of examples. exe file size is about 2.5 mo and can be decreased to about 650 kb with upx ... it reminds me UBX... this is remarkable. ideal for distributing programs without associated dlls. if it is really compatible with wx-c. it would be more
interesting. someone tried to compile wxFBE!. here:

Merci pour ces librairies statiques. j'ai testé la compilation des exemples. la taille des fichiers exe est d'environ 2.5 mo et peut etre diminué a environ 650 ko avec upx... c'est remarquable. ideal pour distribuer des programmes sans dlls associées. si c'est vraiment compatible avec wx-c. ce serait encore plus interessant. quelqu'un a essayé de compiler wxFBE !. ici :

viewtopic.php?f=8&t=20284

pleasant surprise, the examples run under window 2000 pro. I just tested ...
bonne surprise, les exemples fonctionnent sous window 2000 pro. je viens de tester...
MOD
Posts: 555
Joined: Jun 11, 2009 20:15

Re: wx-c (static windows)

Postby MOD » Nov 05, 2012 17:19

Looks good. On long term I want to fork wx.NETs wx-c and make some kind of wx.FB for Windows and Linux. Are you interested in such a project D.J.Peters?
D.J.Peters
Posts: 8023
Joined: May 28, 2005 3:28
Contact:

Re: wx-c (static windows)

Postby D.J.Peters » Nov 05, 2012 22:23

It was for a commercial mini project of me (with OpenGL).
I tested my private build with wxFBE, wx visual designer and some "old" simple tests successfully.

I's the original source code of the wx-c-0-9-0-2.dll plus wxTimer, wxSound, wxGLCanvas and wxEventhandler.

Normaly you can use the "normal" wx FB include files
but the original common.bi points to the dynamic version.
(this is why made a copy of all include files)

It makes no sence for a linux static version
(the GTK+ wx runtime are to big)

The stable version of wxWidgets 2.9.4 is out and far away from compatible
with the wxNet wrapper (and it's wx-c-0-9-0-2.dll C wrapper)

Does anyone found the wx-c-0-9-0-3 source code ?

Joshy
D.J.Peters
Posts: 8023
Joined: May 28, 2005 3:28
Contact:

Re: wx-c (static windows)

Postby D.J.Peters » Nov 06, 2012 0:40

deleted all *.exe from zip file
added upx and a simple build file

Code: Select all

FOR %%f IN (*.exe) DO (if exist %%f del %%f)
FOR %%f IN (*.bas) DO (fbc -w all -s gui %%f wx-c.rc)
FOR %%f IN (*.exe) DO (upx.exe --best %%f)
D.J.Peters
Posts: 8023
Joined: May 28, 2005 3:28
Contact:

Re: wx-c-0-9-0-2 (static and dynamic windows)

Postby D.J.Peters » Nov 06, 2012 1:53

FreeBASIC can handle wstrings also.

added:
FB

Code: Select all

declare function wxString_ctor WXCALL alias "wxString_ctor" (buf As wstring ptr) As wxString ptr

C++

Code: Select all

WXNET_EXPORT(wxString*) wxString_ctor(const wchar_t* str){
  return WXNET_NEW( wxString, (str));
}

static and dynamic version are included now:
wx-c-0-9-0-2.dll (upx = 1,87 MB)
lib/win32/libwx-c-0-9-0-2-static.a
lib/win32/libwx-c-0-9-0-2.dll.a

use
#include "wxdynamic.bi"
or
#include "wxstatic.bi"

Joshy
oyster
Posts: 203
Joined: Oct 11, 2005 10:46

Re: wx-c-0-9-0-2 (static and dynamic windows)

Postby oyster » Jan 29, 2019 4:00

so where can we download the static lib and bi now?
Thanks

btw, although the wx-c examples in fbc 1.05 can be compiled and run with wx-c-0-9-0-2.dll, there is a error messagebox

Failed to load shared library 'comctl32.dll' (error 126: can't find the module.)


p.s. why there is no up-to-date wx-c, I have googled but found nothing

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest