<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Im a newb in C++ waters so i need some quick
help.</FONT></DIV>
<DIV><FONT face=Arial size=2>Been doing some things in VC++ 6 and it worked
nicely, with alot of pain of course :-)</FONT></DIV>
<DIV><FONT face=Arial size=2>Anyway while working on network FPS game using,
well one game engine (dont want advertise here) I found it is cripling
me</FONT></DIV>
<DIV><FONT face=Arial size=2>since I am able to create games for only 4 players
and its perfromance is not what I expected. In order to learn more and make
</FONT></DIV>
<DIV><FONT face=Arial size=2>this "thing" work properly I ventured into creating
network dll as this engine supports use of such things.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried RakNet and did some basic stuff with it
unfortunaly they changed their licencing and i dont have $$ to buy
it.</FONT></DIV>
<DIV><FONT face=Arial size=2>So i found Enet, look like very much what I
need.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Unfortunaly im a VC newb so I cant get it to
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I follwed brief instructions on how to get it
into my project and I have read trough threads on disscusion board named
</FONT></DIV>
<DIV><FONT face=Arial size=2>"Initialization" and havent found
solution.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have included only:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>#include "enet\enet.h"</EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and added functions that are suposed to only
initialize and deinitialize Enet:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>#define DLL_USE<BR>#include
"adll.h"</EM></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><EM>//#include "win32.h"</EM></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><EM>BOOL APIENTRY DllMain( HANDLE hModule,
<BR>
DWORD ul_reason_for_call,
<BR>
LPVOID lpReserved<BR>
)<BR>{<BR> engine_bind();<BR> return
TRUE;<BR>}</EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>DLLFUNC var DllInitNet(void) //main (int argc,
char ** argv) <BR>{<BR> if (enet_initialize () !=
0)<BR> {<BR>
//fprintf (stderr, "An error occurred while initializing
ENet.\n");<BR> return _VAR(1);//return
EXIT_FAILURE;<BR> }<BR> atexit
(enet_deinitialize);<BR> return _VAR(0);<BR>}</EM></FONT></DIV>
<DIV><EM><FONT face=Arial size=2></FONT></EM> </DIV>
<DIV><FONT face=Arial size=2>Compiling spits this out and i cant get rid of
it:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>test1.obj : error LNK2001: unresolved external
symbol _enet_deinitialize<BR>test1.obj : error LNK2001: unresolved external
symbol _enet_initialize<BR>Debug/test1.dll : fatal error LNK1120: 2 unresolved
externals<BR>Error executing link.exe.</EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In other "similar" threads people said "put -lenet"
somewhere, but I dont know where to put that, if that would solve
it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matija</FONT></DIV></BODY></HTML>