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'
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.
3. Re: errno
- Posted by Jacques Deschenes <desja at GLOBETROTTER.QC.CA>
Jan 22, 1998
-
Last edited Jan 23, 1998
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
4. Re: errno
- Posted by Robert Craig <rds at EMAIL.MSN.COM>
Jan 22, 1998
-
Last edited Jan 23, 1998
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