Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI: Proof of concept with wx-c.dll
#31
Cool, i changed it to add BYVAL to the arguments, and also to use DIR$() instead the shell method, worked fine for most .cxx, good enough ;)

I was working on a mini C parser, reusing fb's code, but it's far from being usable, too many things to do right now in fb itself :/
Reply
#32
worked on my parser thingy some more today, it seems to have correctly converted all the cxx's except for the one with this header:
Code:
char wxHtmlEntitiesParser_GetCharForCode(wxHtmlEntitiesParser* self, unsigned code)
since the var "code" doesn't include a type. :???: (line 1788 of the output) oh well, here's the corrected code:

Download cxx2bi.bas

...and, the (manually) corrected output file (it probably still has errors, i only searched for the words "unsigned" and "const" to check it...)

Download wx-c.bi

fsw, how did you get the values for the consts?
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#33
a few bugs fixed (thx v1c)

Download libwx-c.bi

Download cxx2bi.bas
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#34
now successfully works out-of-the-box. fixed several bugs. the only bad things remaining about the unaltered output is that "mod" is used as a variable name, and for one of the functions, an optional variable defaults to a value not defined in wxw's defs.h. i _still_ don't get how to work menus. you can see my failed attempt in "wx_mytest.bas" Sad

Download wx-c stuff.zip - fully packed with working stuffs (except for my menus... >.<)
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#35
Quote:fsw, how did you get the values for the consts?
Good question :???:
I don't remember. On my HD is wx-cmm (for the Sphinx c-- compiler), MinGwStudio (that comes with the wx lib's and headers), wx.NET and wxWidget itself with all the docs.

Only wx-c.dll comes without docs...

Maybe experienced wx programmers would jump right in, without any problems :roll:

BTW: have to take a look at the files you provided Big Grin
keep up the good work :bounce:
Reply
#36
@dumbledore
wow :o
libwx-c.bi is 550Kb, and you also made wxdefs.bi
EXCELLENT 8)

Question:
why is your libwx-c.dll.a only 3Mb - the one I did is 8Mb.
Is your libwx-c.dll.a not complete or is mine filled with unnecessary stuff?
Reply
#37
Again, good job dumbledore ;)

Yeah, i stripped the .def for wx-c, removing all the C++ exports, that won't be used anyway, so the import lib is a bit smaller.
Reply
#38
v1c:
when you made that stripped down .a file, did you make a dll file too? because some of the wrapped functions in the cxx files are compiling ok, but the exe's crash because they can't find the entry point in the dll. i'm thinking maybe i have an older version of it?

the functions i've found so far are:
wxCursor_SetCursor
and
wxImageList_AddBitmap
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#39
beginnings of a port of the controls sample.
Download wx-c sample.zip
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#40
Can't get the menues to work properly either :oops:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)