Posts: 922
Threads: 15
Joined: Jun 2003
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 :/
Posts: 489
Threads: 34
Joined: Jan 2005
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
Posts: 489
Threads: 34
Joined: Jan 2005
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
Posts: 489
Threads: 34
Joined: Jan 2005
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"
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
Posts: 251
Threads: 22
Joined: Dec 2004
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
keep up the good work :bounce:
Posts: 251
Threads: 22
Joined: Dec 2004
@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?
Posts: 922
Threads: 15
Joined: Jun 2003
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.
Posts: 489
Threads: 34
Joined: Jan 2005
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
Posts: 489
Threads: 34
Joined: Jan 2005
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
Posts: 251
Threads: 22
Joined: Dec 2004
Can't get the menues to work properly either :oops: