Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

calling Winsock??

1 view
Skip to first unread message

George R. Gonzalez

unread,
May 23, 2003, 1:21:31 PM5/23/03
to
Hi, I have an old DOS 16-bit borland C program that would REALLY benefit
from being able to make some WINSOCK calls.

I have PowerPak for DOS, so if I read the manual correctly, I can make calls
to 16-bit DLL's, which WINSOCK is one of.

problem is, I always get "invalid entrypoint called" as soon as I hit the
first call to "socket".

The linker didnt complain, and there's clearly a "SOCKET" listed on the link
map.

So what's wrong? Any ideas, examples?

environment: Windows/XP, WOW, BCC 4.5, PowerPak.

Thanks,

George

Phil Frisbie, Jr.

unread,
May 23, 2003, 5:08:32 PM5/23/03
to
George R. Gonzalez wrote:
> Hi, I have an old DOS 16-bit borland C program that would REALLY benefit
> from being able to make some WINSOCK calls.
>
> I have PowerPak for DOS, so if I read the manual correctly, I can make calls
> to 16-bit DLL's, which WINSOCK is one of.
>
> problem is, I always get "invalid entrypoint called" as soon as I hit the
> first call to "socket".
>
> The linker didnt complain, and there's clearly a "SOCKET" listed on the link
> map.
>
> So what's wrong? Any ideas, examples?

I believe the technique used only works on Windows 3.1, 9x, and ME. Windows XP
is really NT 6 which does not work the same. I had the same problem with a DJGPP
library that used Winsock, but would not work under NT.

> environment: Windows/XP, WOW, BCC 4.5, PowerPak.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

0 new messages