1. dll headache
- Posted by void <void at xs4all.nl> Jan 07, 2002
- 447 views
I'm trying to create a dll to access C functions in an external program. The C program comes with an API, and includes source code, header files, lib file, makefile (from with I created obj files). I'm a beginner so I've read many messages in this forum about dll's and tried things like bcc32 -tWD ... and tried swig-eu, but I failed to build a working dll (no Export functions show up with quick view). The Euphoria part on how to read from a dll is clear, but building a dll from C source gives me headaches, I have tried things with Borland C++ 5.02 and Visual C++ 6.00, I also have Watcom. My questions for now are: What files are needed for a dll: *.c, *.h, *.obj *.lib ? Then how do build the dll from these files? Do I need to add C source code? (I'm trying to access the C functions of the Wordnet API http://www.cogsci.princeton.edu/~wn (open source))
2. Re: dll headache
- Posted by Kat <gertie at PELL.NET> Jan 07, 2002
- 417 views
On 7 Jan 2002, at 13:14, void wrote: <snip> > (I'm trying to access the C functions of the Wordnet API > http://www.cogsci.princeton.edu/~wn (open source)) I got 1.6 when it first came out, but now i cannot reach the ftp download url they give. What's going on? Kat
3. Re: dll headache
- Posted by void <void at xs4all.nl> Jan 07, 2002
- 418 views
You can download Wordnet here temporarily: http://www.xs4all.nl/~void/ > > (I'm trying to access the C functions of the Wordnet API > > http://www.cogsci.princeton.edu/~wn (open source)) > > I got 1.6 when it first came out, but now i cannot reach the ftp download url > they give. What's going on? > > Kat
4. Re: dll headache
- Posted by rossboyd at ihug.com.au Jan 07, 2002
- 416 views
This doesn't answer your question about DLLs but... > > (I'm trying to access the C functions of the Wordnet API > http://www.cogsci.princeton.edu/~wn (open source)) > There is an alternative free dictionary called WordWeb which comes with an interface DLL and a documented API. I use it and it works very well. Writing Euphoria code to call the DLL would be a trivial task. Download the complete package (4.6Mb) here: http://www.wordweb.co.uk/free Cheers, Ross
5. Re: dll headache
- Posted by Kat <gertie at PELL.NET> Jan 07, 2002
- 419 views
Opps, nm, the page says 1.6 in the text, and the win package is 1.6, but the unix package url says 1.7,, i'll try it............. Kat
6. Re: dll headache
- Posted by Kat <gertie at PELL.NET> Jan 07, 2002
- 419 views
On 7 Jan 2002, at 22:32, void wrote: > > You can download Wordnet here temporarily: > http://www.xs4all.nl/~void/ That's 1.6,, i have that, i was looking for the updates to it, 1.7. *nix is ok, since i am not using the code anyhow. Kat > > > (I'm trying to access the C functions of the Wordnet API > > > http://www.cogsci.princeton.edu/~wn (open source)) > > > > I got 1.6 when it first came out, but now i cannot reach the ftp download > url > > they give. What's going on? > > > > Kat > > > >
7. Re: dll headache
- Posted by Kat <gertie at PELL.NET> Jan 07, 2002
- 408 views
On 7 Jan 2002, at 16:54, Kat wrote: > > Opps, nm, the page says 1.6 in the text, and the win package is 1.6, but the > unix package url says 1.7,, i'll try it............. Void, i tried, can't open it. Kat
8. Re: dll headache
- Posted by Euman <euman at bellsouth.net> Jan 07, 2002
- 422 views
Just about all there is to know about DLL's is at this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconaccessingdllswindowsapi.asp Some VB understanding required. Euman euman at bellsouth.net
9. Re: dll headache
- Posted by void <void at xs4all.nl> Jan 08, 2002
- 436 views
Thanks everybody for helping! This should keep me busy for a while, although I guess building dll's from larger source codes is to difficult for me at this point (without C knowledge). Kat: I fixed the WordNet download http://www.xs4all.nl/~void/ Ross: unfortunately the free version of WordWeb doesn't come with an API anymore, also it doesn't offer as much structured lexical data as WordNet (which makes it interesting for AI purposes).
10. Re: dll headache
- Posted by rossboyd at ihug.com.au Jan 08, 2002
- 436 views
I just uploaded an include for interfacing with WordWeb from Euphoria. Of course, its only a simple dll call.... for copy/pasting alternate words. It doesn't update the dictionary database which is what you want to do with Wordnet, I guess. Sounds interesting. > > Thanks everybody for helping! This should keep me busy for a while, although > I guess building dll's from larger source codes is to difficult for me at > this point (without C knowledge). > > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/ > > Ross: unfortunately the free version of WordWeb doesn't come with an API > anymore, also it doesn't offer as much structured lexical data as WordNet > (which makes it interesting for AI purposes). >
11. Re: dll headache
- Posted by Kat <gertie at PELL.NET> Jan 08, 2002
- 433 views
On 8 Jan 2002, at 11:38, void wrote: > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/ Thanks! Kat
12. Re: dll headache
- Posted by rossboyd at ihug.com.au Jan 08, 2002
- 442 views
I downloaded it, void, but... one of the files (_setupd.exe) has a CRC error when extracting - so the install fails. Ross > > On 8 Jan 2002, at 11:38, void wrote: > > > > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/ > > Thanks! > > Kat > > > >
13. Re: dll headache
- Posted by void <void at xs4all.nl> Jan 08, 2002
- 438 views
Fixed the PC download of WordNet too now, bad luck, sorry. > I downloaded it, void, but... > one of the files (_setupd.exe) has a CRC error when extracting - so the > install fails. > > > Ross > > > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/ > > > > Thanks! > > > > Kat