ive been trying to create a c tpc. I can make a normal dll that would be in dbc,but so far i cannot create a plug-in. I try,but darkbasic pro says the function cannot be found. Its a problem in the string table,but i dont know where. Here is the string table and the functions:
in dll.h:
DLLIMPORT int Add(int i,int i2);
in dllmain.cpp:
DLLIMPORT int Add(int i,int i2);
{
int ia;
ia = i+i2;
return ia;
}
in dll.rc:
#include "dll.h"
STRINGTABLE
{
1 "GET VALUE[%L%?Add@@YAHXZ"
}
So why doesnt darkbasic pro recognize that?
all ben needs is his band,his guitar,and his computer