Ok so I may have narrowed this down a bit.
I have put together this ultra simple test file "test.c"...
Code:
#include <acknex.h>
#include <default.c>
function GSTNet_ServerInit(int port);
function GSTNet_Connection();
void main()
{
level_load("test.wmb");
wait (3);
ent_create("..\\ASSETS\\MODELS\\mig.mdl", vector(0, 0, 0), NULL);
GSTNet_ServerInit(15152);
while(GSTNet_Connection() == 0)
{
wait(1);
}
}
And it crashes on load with the "This program has encountered a problem ..." box of death.
I believe this is down to one of three things...
1) The dll is never being loaded (perhaps I missed a step??).
2) The function prototype is incorrect and so it cant find the function to call or is passing it the wrong datatypes.
3) The dll itself requires some modification to work (unlikley).
Any ideas??
Cheers
MACRO
