1. How would I write a decls for the gethostname function?
2. Failing #1...I wish to make Blitz functions for all functions within "ws2_32.dll"
2. Failing #1...I wish to make Blitz functions for all functions within "ws2_32.dll"
hostname$ = GetHostName() Print hostname$ WaitKey() End Function GetHostName$() tempbuffer$ = String$(" ", 63) tempbank = CreateBank(Len(tempbuffer$)+4) PokeByte tempbank,Len(tempbuffer$),4 CallDLL ("ws2_32.dll", "gethostname", tempbank) For temp = 0 To Len(tempbuffer$)-1 tempbyte = PeekByte (tempbank,temp) If tempbyte <> 0 Then tempname$ = tempname$ + Chr$(PeekByte (tempbank,temp)) Next FreeBank tempbank Return tempname$ End Function