1. errno

FYI, wsock32.DLL opens up find in Euphoria! I'm currently writing up the
necessary .e files, as well as some helper functions. I'm just hoping
that windows sockets are not horrifically different from UNIX sockets
(which I know pretty well).

In any case, is there a standard way in Euphoria to access the errno that
the funtions in a DLL set? I'm getting an error from my socket routine
(By digging in some documentation, I found that I hadn't initialized
correctly). However, being able to get errno, or some kind of err descriptor
would have saved time.


--
Ryan Zerby, Senior Programmer   ryanz at netrex.com
"to create out of his own imagination the beauty of his wild forebears
--a mythology he cannot inherit." -- Allen Ginsberg 'Wild Orphan'

new topic     » topic index » view message » categorize

2. Re: errno

Ryan Zerby wrote:
>
> FYI, wsock32.DLL opens up find in Euphoria! I'm currently writing up the
> necessary .e files, as well as some helper functions. I'm just hoping
> that windows sockets are not horrifically different from UNIX sockets
> (which I know pretty well).
>
> In any case, is there a standard way in Euphoria to access the errno that
> the funtions in a DLL set? I'm getting an error from my socket routine
> (By digging in some documentation, I found that I hadn't initialized
> correctly). However, being able to get errno, or some kind of err descriptor
> would have saved time.
>
> --
> Ryan Zerby, Senior Programmer   ryanz at netrex.com
> "to create out of his own imagination the beauty of his wild forebears
> --a mythology he cannot inherit." -- Allen Ginsberg 'Wild Orphan'

I'll post a Word document on Windows sockets programming specifics
in ALT.LANG.EUPHORIA. It should have some important information.
If this is not a good option then I'll put it on my Geocities site.

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

3. Re: errno

At 07:51 22-01-98 -0500, you wrote:
>FYI, wsock32.DLL opens up find in Euphoria! I'm currently writing up the
>necessary .e files, as well as some helper functions. I'm just hoping
>that windows sockets are not horrifically different from UNIX sockets
>(which I know pretty well).
>
>In any case, is there a standard way in Euphoria to access the errno that
>the funtions in a DLL set? I'm getting an error from my socket routine
>(By digging in some documentation, I found that I hadn't initialized
>correctly). However, being able to get errno, or some kind of err descriptor
>would have saved time.
>
>
>--
>Ryan Zerby, Senior Programmer   ryanz at netrex.com
>"to create out of his own imagination the beauty of his wild forebears
>--a mythology he cannot inherit." -- Allen Ginsberg 'Wild Orphan'
>

Try GetLastError() function  in kernel32.dll

Regards,




Jacques Deschenes
Baie-Comeau, Quebec
Canada
desja at globetrotter.qc.ca

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

4. Re: errno

Ryan Zerby writes:
> In any case, is there a standard way in Euphoria to
> access the errno that the functions in a DLL set?

In the WIN32 API there's:

    DWORD GetLastError(VOID)

When you call a WIN32 function and it fails,
call GetLastError() immediately
to get the integer error code.

GetLastError() is in kernel32.dll. You'll have to link
to it from Euphoria.

There's a list of error codes and what they mean in
the Appendix of the WIN32 section of  the WIN32
SDK help file. The documentation for the specific
routine you are calling might say something about
the possible error codes for that routine.

Regards,
     Rob Craig
     Rapid Deployment Software

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

Search



Quick Links

User menu

Not signed in.

Misc Menu