ok for those interesting in doing their functions in C++ and using dll's without spending a bundle of $$ on a new compiler, here is what you do , goto : http://www.borland.com and download their free windows compiler, then after you've installed, make a source code file with extension .cpp, which we will call test.cpp , then write your functions in it. for example, :
#define DARKDLL __declspec(dllexport)
DARKDLL int somefunction(int p1) {
p1=44
// your statments
return p1; }
now , to actually make this into a dll (and remember , c++ is case sensitive lol )
you open a command prompt, and navigate to the folder using command promps and then type in bcc32 -WD test.cpp {asumming the file named is test.cpp }
now assuming that you actually typed the wd in caps (again c++ is case sensitive including the commands for the compiler) ,and there are no errors in your code, then you just made a dll thats compatible with dark basic, now , to access the functions in your dll, you will need to know what the functions export as. and here is how you do that : the next thing you would type is :
impdef list.txt test.dll
this will create a text doc with the names of the function , which you could then access from a dark basic program.
cheers~
RGteam~