Quote: "but thats not the kind of dll i want to make. i want to be able to call this command in bd and dbpro."
you cannot make the DLL callable within DarkBASIC as a Command like you can in DBP, but provided you export it using
Extern "C" __declspec ( dllexport ) [prototype]
you will be able to call it in DB Enhanced like:
Load DLL DLLNumber, DLLName$
Call DLL DLLNumber, DLLFunctionName$, Parameters [upto 9]
if it has to call something back then you must use,
Result = Call DLL ( DLLNumber, DLLFunctionName$, Parameters [upto 9] )
Remember DB cannot use Global Structure features, or DirectX9.. so if you plan to use them make sure you create 2 Prototype Functions to export as the same name, you can do this by checking to see if _GLOBSTRUCT_H_ symbol has been defined.