ok,say you have VC, no? best...

This is a example, no use DB DLL !!!
Firts, create a DLL project (win32), in the project you create two files, one, the source and other for the
stringtable, where indicate in the DLL, the functions to export !!!
The source:
/*
1.6. The DEFINE statement creates a special macro called MYCOMMAND which when parsed will
replace all instanced of MYCOMMAND with the __declspec(dllexport) code. This code tells your DLL
that this function is going to be exported. This means that other executables can use the function
from outside the DLL. This is vital if DBPro is to use your function.
*/
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND int GetValue( void );
//
// Standard DLL Main
//
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
MYCOMMAND int GetValue( void )
{
return 42;
}
...and the
stringtable
push
F7 in the VC, and go... copy the file.dll from directory debug of the you project, to the directory
plugins-user of the DBpro and finish... now in the DB
A=GET VALUE()
PRINT "My Value : ";A
WAIT KEY
