Hi,
Select file->new->Dll wizard in the builder IDE for C++ 5.0 then declare the function name as follows
extern 'C' __declspec(dllexport)<datatype> <function <name>(<parameter list>);
write the function as with all other functions.
<datatype> <function <name>(<parameter list>)
{
//statements
}
in the main program call the function in dll as follows
extern "C"
{
<data type> __declspec(dllimport) <function name>(<function parameters>);
}
Please also read the commentary above the new dll unit file once its created in the IDE. For compatibility to other programs I assume this should work but in case it doesn't try the borland help.
Some of their older article are online. James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.