<html><div style='background-color:'><P class=RTE>Yes the program compiled and ran perfectly until I added in the Enet files. Here is my winmain.cpp:</P>
<DIV class=RTE>#define WIN32_LEAN_AND_MEAN</DIV>
<DIV class=RTE>#include <windows.h><BR>#include "enet/enet.h"</DIV>
<P>LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)<BR>{<BR> switch (msg)<BR> {<BR> case WM_CREATE:<BR> {<BR> enet_initialize();<BR> return 0;<BR> }</P>
<P> case WM_DESTROY:<BR> {<BR> enet_deinitialize();<BR> PostQuitMessage(0);<BR> return 0;<BR> }<BR> }</P>
<P> return DefWindowProc(hWnd, msg, wParam, lParam);<BR>}</P>
<P>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowcmd)<BR>{<BR> WNDCLASS windowClass;<BR> HWND hWnd;<BR> MSG msg;</P>
<P> windowClass.style = NULL;<BR> windowClass.lpfnWndProc = WindowProc;<BR> windowClass.cbClsExtra = 0;<BR> windowClass.cbWndExtra = 0;<BR> windowClass.hInstance = hInstance;<BR> windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);<BR> windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);<BR> windowClass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);<BR> windowClass.lpszMenuName = NULL;<BR> windowClass.lpszClassName = "WinClass";</P>
<P> RegisterClass(&windowClass);</P>
<P> hWnd = CreateWindow("WinClass", "PokeClient", WS_OVERLAPPEDWINDOW | WS_VISIBLE,<BR> 10, 10, 488, 354, NULL, NULL, hInstance, NULL);</P>
<P> while (GetMessage(&msg, NULL, 0, 0))<BR> {<BR> TranslateMessage(&msg);<BR> DispatchMessage(&msg);<BR> }<BR> <BR> return msg.wParam;<BR>}</P>
<P class=RTE><BR>It all looks quite normal to me. Is something wrong with #include "enet/enet.h"? I have an enet folder in my project folder with the following files, although none of these files were officially 'added' to the project: enet.h, list.h, memory.h, protocol.h, time.h, types.h, unix.h, utility.h, and win32.h</P>
<P class=RTE>I have the following enet source files added to my project properly and they all compile: host.c, list.c, memory.c, packet.c, peer.c, protocol.c, unix.c, win32.c</P>
<P class=RTE>All of the enet files were downloaded from <A href="http://enet.cubik.org/">http://enet.cubik.org/</A> a couple days ago and are unchanged. I am linking properly to ws2_32.lib. I can't see a single reason for this to be happening, it's a very weird error indeed :( could it be a problem with MSVC++ 6.0? I don't want to get a new compiler just for this problem, but I might have to. Maybe the following information will help. Under the External Dependencies folder in the compiler window it has the following files: basetsd.h, basetsd.h (listed again), enet.h, guiddef.h, propidl.h, reason.h, stralign.h, tvout.h, utility.h, win32.h, winefs.h</P>
<P class=RTE>It seems weird that the program lists enet.h, win32.h, and utility.h, but no other Enet header files. Could this be related somehow? Thanks for your time and quick replies, btw.<BR></P>
<DIV></DIV>>From: Brian Hook <hook_l@bookofhook.com>
<DIV></DIV>>Reply-To: Discussion of the ENet library <enet-discuss@cubik.org>
<DIV></DIV>>To: Discussion of the ENet library <enet-discuss@cubik.org>
<DIV></DIV>>Subject: Re: [ENet-discuss] Linker Errors
<DIV></DIV>>Date: Tue, 20 Jul 2004 19:18:33 -0400
<DIV></DIV>>
<DIV></DIV>>Well, that's odd. If you just have the files in there, it should just
<DIV></DIV>>be working fine. Does the test program compile for you?
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>ENet-discuss mailing list
<DIV></DIV>>ENet-discuss@cubik.org
<DIV></DIV>>http://lists.cubik.org/mailman/listinfo/enet-discuss
<DIV></DIV></div><br clear=all><hr>Open your e-mail without having to worry about viruses with <a href="http://g.msn.com/8HMBENCA/2737??PS=47575">MSN Premium: </a> Join now and get the first two months FREE*</html>