Hello
i have the problem that i will a windows Function recfrom make a buffer
of 4096 bytes .can every one tell me how i can make the buffer in powerbasic so is compatible to a C buffer what the Function need.
DECLARE FUNCTION recvfrom LIB "ws2_32.dll" ALIAS "recvfrom" (BYVAL s AS DWORD, buf AS ANY, BYVAL buflen AS LONG, BYVAL flags AS LONG, saFrom AS SOCKADDR, fromlen AS LONG) AS LONG
I have the Problem with "buf AS ANY" i dont know how to dim or creat it in the right large.
I thanks for help.
with high regards
Andreas
i have the problem that i will a windows Function recfrom make a buffer
of 4096 bytes .can every one tell me how i can make the buffer in powerbasic so is compatible to a C buffer what the Function need.
DECLARE FUNCTION recvfrom LIB "ws2_32.dll" ALIAS "recvfrom" (BYVAL s AS DWORD, buf AS ANY, BYVAL buflen AS LONG, BYVAL flags AS LONG, saFrom AS SOCKADDR, fromlen AS LONG) AS LONG
I have the Problem with "buf AS ANY" i dont know how to dim or creat it in the right large.
I thanks for help.
with high regards
Andreas
Comment