Re: NewEra 2.20: How to call function in external dll ?
Posted in 1997
T. Beuke wrote: > > Hello, > > how do i call a function that is placed in an external dll. > The only things i know are the name of the dll, the name of the function > in it and the number and type of parameters it gets and returns. > > -- > MfG, > T. Beuke > (Leiter Softwareentwicklung) > Hi, T. Possibility #1: You have the .lib file or are able to generate it. Just include it in the project (for generating a lib from a dll see the implib command). Possibility #2: You load the dll during runtime using LoadLibrary(). Afterwards you get pointers to the functions you want via GetProcAddress (sp.?). This is using windows api. All this is standard and has nothing to do with NewEra. Only keep in mind that you must be careful with parameters if the dll you use is not written in NewEra. Regards Dirk -- -- Dirk Gunsthoevel phone: +49 (0)251 624947 -- Hoeftestr.49 fax: +49 (0)251 624177 -- 48167 Muenster mobile: +49 (0)171 8047582 -- Germany http://members.aol.com/Plabit/welcome.html