Re: include abc.dll - any volunteers?
- Posted by Mike <vulcan at win?co?nz> Jan 09, 2008
- 744 views
Pete Lomax wrote: > > Matt Lewis wrote: > > > > It depends upon the header file. Some are pretty straightforward. Others > > are filled with macros, or are just formatted strangely, and are a lot more > > difficult to figure out. > Do you think it might be easier to look for VB stuff, eg: > <a > href="http://www.hpcc.ecs.soton.ac.uk/software/Win32API.Txt">http://www.hpcc.ecs.soton.ac.uk/software/Win32API.Txt</a> > > Mike wrote: > > > > Pete, Matt, Thanks for the replies. I think the way to do this would be to > > create a tool to analyse the relevant header files and then produce a > > Euphoria > > file that can be included as per normal. I guess it'd have to be able to > > parse > > C so my feeling is that it won't be done any time soon...unless a similar > > tool > > exists for another language and could be modified for our purposes. > > > > While I'm not about to download and install Borland/Watcom/etc myself, if you > select one of the less complicated styles, and email me a smallish example, > I'll have a go. Actually, belay that, I just found the link above and would > prefer you investigate that first. I think a Q 'n D program would easily convert most of that correctly and the rest just flagged as too hard and so the user would need to make the final adjustments by hand. However, for non-std dlls we might have trouble getting the relevant VB file. The other problem is this: who would write such a converter? > One thing I would be keen to see is a way to integrate the help with Edita: > if you have abc.dll and abc.hlp (or abc.chm) and you create abc.inc which > defines > abcfunc(), then I'd like Edita to be able to scan abc.inc and add "abcfunc" > to it's F1 help system. Maybe just something simple like: > > }}} <eucode> > -- xx.inc: wrapper for xx.dll > ... > --F1HELP:xx.hlp > -- <or> xx.chm > -- <or> http://www.xx.org/search?term= > ... > --F1:abcfunc > global function abcfunc(...) > </eucode> {{{ > > Regards, > Pete I think it is exactly that simple but the converter tool would need help to correctly construct any help targets. regards, Mike