Question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Quote:
>Hello!
>>
>> , C++ Pascal-.
>> !
>It is very simple!
Umm, I'm glad somebody else could read this!
Quote:
>First way:
>use DLL
>You can write DLL in BP and C easly. And use them in both
>langs.
>Second way:
>Compile your C modules to OBJ and use them in BP.
There's one minor catch to this. Your C functions have to be declared using
pascal calling convention. You can accomplish this by either declaring each
function pascal as:
int pascal myfunc (int *a);
Or using the -p flag with the command-line compiler. Then your BP code
would look like:
function myfunc (var a : integer) : integer; external;
The only problem I've found with this is that you may have linking problems
if the module written in C uses any functions in the standard library.
Considering this, DLLs are probably a much better way to go.
Quote:
>You can't use Bp module in C prms :(.
>With best wishes, Paul
--
Scott F. Earnest | We now return you to our regularly scheduled