We should begin a new list of things a developer should take care of when he is developing engine plugins accessed via liteC (even it is not out yet, but I assume that most C++ plugin developers have access to the liteC beta).

I will begin with "how to pass vectors to a DLL" because its a bit different now than with cscript and I got some headaches since yesterday night

Code:

//liteC:

//call:

VECTOR* testVector [3];

testVector[0] = 15;
testVector[1] = 2009;
testVector[2] = 666;

dllTest(testVector);

//prototype:
void dllTest(VECTOR* position);

//C++

//DLL function
DLLFUNC void dllTest (VECTOR* position)
{
char buffer [50];
int n;
n = (int)position->y;
n=sprintf (buffer, "%d", n);
error(buffer);
}



Please post other snippets here and NO posts like "yay thats a cool idea - but I dont have a clue about that topic".

Thank you.