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

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

download: fbWX-C.zip
Last edited by D.J.Peters on Oct 12, 2022 18:31, edited 3 times in total.
Coolman
Posts: 294
Joined: Nov 05, 2010 15:09

Re: wx-c (static windows)

Post by Coolman »

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 :

http://www.freebasic.net/forum/viewtopi ... =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: 558
Joined: Jun 11, 2009 20:15

Re: wx-c (static windows)

Post by MOD »

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: 8586
Joined: May 28, 2005 3:28
Contact:

Re: wx-c (static windows)

Post by D.J.Peters »

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: 8586
Joined: May 28, 2005 3:28
Contact:

Re: wx-c (static windows)

Post by D.J.Peters »

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: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

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: 274
Joined: Oct 11, 2005 10:46

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

Post by oyster »

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
mongnewer
Posts: 3
Joined: Apr 14, 2022 17:41

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

Post by mongnewer »

I compiled wx-c and its backend wxWidgets-2.8.12 into 64bit version, and tested on mint 21.3 Virginia ok. VisualWX-C-Designer-0.5b can still be used with Wine support for not adding many old .so to the system, and the generated code can be pasted to any freebasic IDE for fbc compile and run.
The 64bit package is placed at https://download.csdn.net/download/weix ... 1/89095738
PeterHu
Posts: 161
Joined: Jul 24, 2022 4:57

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

Post by PeterHu »

closed
Last edited by PeterHu on Apr 08, 2024 12:10, edited 1 time in total.
mongnewer
Posts: 3
Joined: Apr 14, 2022 17:41

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

Post by mongnewer »

Finally, the x86_64bit wx-c-0-9-0-2.so and its backend wxGTK-2.8.12 is put under
https://sourceforge.net/projects/wx-c-so-recompile/

Using Visual_WX-C_Designer-05b generated code and freeBasic originaly packed wx-c.bi, the new compiled wx-c lib and wxGTK backend test ok.
Post Reply