From: Seby Carta Newsgroups: alt.winsock.programming,comp.os.msdos.djgpp,comp.os.ms-windows.apps.winsock.misc Subject: C++ Sock beginner: help me please. Date: Thu, 19 Mar 1998 17:18:45 +0100 Organization: Telecom Italia Net Lines: 34 Message-ID: <35114564.23097AFB@tin.it> NNTP-Posting-Host: catania5-40.tin.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi friends, At first..excuse my english ..but this is the best i can do :o) i have developed a chat using java , and it's all ok... but... i want port my program to C++ world using DJGPP and RSXNTDJ. My problem is that ... i was unable to hook windows socket ... when program execute ..humm...for example "gethostbyname()" function ..it return "exception 0x15". If i link statically wsock32.dll in my .exe program... it doesn't return any error , but it doesn't work ! Where is my fault ?? I tried also with borland C++ 4.5 ..... same errors ...same problems.... I think that is a sock initialization problem or library linking problem... please ...who can provide me a simple sample how to initialize a windows socket ? I'm really desperate !! :-)) Thanx in advance... [please..if you can , send me a copy of message, thanx] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Seby Carta - Computer Bug - * -Home: http://sebycarta.home.ml.org -Chat: http://seby.dyn.ml.org/chat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~