From: Steve K. <st...@st...> - 2004-04-21 13:27:34
|
I think that several people are making DLLs from iaxclient, but they all use some kind of "glue" file to do it. As I understand it, it should be relatively straightforward to make the iaxclient library functions available when compiled to a DLL (while also making sure it can still compile to a static library with different options). The issue for some people (not for you), was that they didn't know how (or it may not be possible) to have Visual Basic access the union which we're currently using for events: typedef struct iaxc_event_struct { int type; union { struct iaxc_ev_levels levels; struct iaxc_ev_text text; struct iaxc_ev_call_state call; } ev; } iaxc_event; So, making the current API available to Visual Basic is problematic. We could add a couple of simple C functions to do the casting necessary, though. Basically something like this: struct iaxc_ev_levels *iaxc_extract_levels(struct iaxc_event struct *s) { return &(s->levels); } etc. This would allow VB programmers (I think) to get the union members without needing to figure out how to make VB access the union. If we do this, though, I'd like input from the VB and other DLL users though, so we can make a solution that works for everyone. -SteveK Eloy Domingos wrote: >Hi All, > > >I was wondering whether anyone has been able to successfully create >a win32 .dll file for Borland C++ enterprise developer, without altering >the iaxclient lib sources. If so, I would like to know how this was >achieved (project/unit settings, compiler/linker configuration). > >I have been able to use iaxclientlib with some success in my IAX2 >softphone client, but I had to modify the iaxclient lib and various >other libraries (gsm, speex, portaudio), in order to compile/link them into >my application. Instead of this, I would prefer a cleaner interface >between my application and the libiaxclient suite by compiling it into >a .dll (with typelib info). > >Any pointers or info will be appreciated. > > >Thanks in advance, >Eloy Domingos > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Iaxclient-devel mailing list >Iax...@li... >https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > > |