For example, WSOCKSQB has a routine called WSINIT, which does
nothing
but return an integer and has no parameters to pass. How do I call
that
from Pascal?
{$L WSOCKSQB.OBJ}
function WSINIT:integer;near;external;
begin
writeln(WSINIT)
end.
Hi, I'm running Borland Pascal 5.5, unfortunately it doesn't work - it says BEGIN expected (I guess it doesn't interpret the NEAR or FAR statements), but upon changing, I'm getting errors about the PUBLIC calls in the OBJ file and when compiling the OBJ ahead of time using Microsoft Link, the problem is now an Invalid Integer or something along those lines.
The WSOCKSQB library works perfectly on my QuickBASIC installation; so I know its not a problem with the library - just trying to figure out the proper way of interfacing BASIC libraries with Pascal. I know it can be done, just trying to figure out how...
The WSOCKSQB library is open-source so I could always recompile it if necessary
but I shouldn't have to do that.
*Nick*
--- DB 1.96sl/100000
* Origin: Nicks Notebook (1:229/426)