1. dll headache

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))

new topic     » topic index » view message » categorize

2. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: dll headache

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
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: dll headache

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: dll headache

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).

new topic     » goto parent     » topic index » view message » categorize

10. Re: dll headache

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).
>

new topic     » goto parent     » topic index » view message » categorize

11. Re: dll headache

On 8 Jan 2002, at 11:38, void wrote:


> Kat: I fixed the WordNet download http://www.xs4all.nl/~void/

Thanks! smile

Kat

new topic     » goto parent     » topic index » view message » categorize

12. Re: dll headache

I downloaded it, void, but...
one of the files (_setupd.exe) has a CRC error when extracting - so the
install fails.
sad

Ross




>
> On 8 Jan 2002, at 11:38, void wrote:
>
>
> > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/
>
> Thanks! smile
>
> Kat
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

13. Re: dll headache

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.
> sad
> 
> Ross

> > > Kat: I fixed the WordNet download http://www.xs4all.nl/~void/
> >
> > Thanks! smile
> >
> > Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu