Does it matter? (And I'm not being rude, I'm being serious). I thought it would be
like filenames, where case doesn't matter? Or is this not the case (pun intended).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
PB wrote:Does it matter? (And I'm not being rude, I'm being serious). I thought it would be
like filenames, where case doesn't matter? Or is this not the case (pun intended).
Maybe not. But it is different. That is the (minor) bug.
Belive! C++ version of Puzzle of Mystralia <Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
;InitNetwork()
;Debug Hostname()
;
;Hostname() function as API
WS2_32=OpenLibrary(#PB_Any,"Ws2_32.dll")
If WS2_32
wsastartup=CallFunction(WS2_32,"WSAStartup",514,lpWSAData.WSADATA) ; Version = 2.2
Select wsastartup
Case #WSASYSNOTREADY
Debug "#WSASYSNOTREADY"
Case #WSAVERNOTSUPPORTED
Debug "#WSAVERNOTSUPPORTED"
Case #WSAEINPROGRESS
Debug "#WSAEINPROGRESS"
Case #WSAEPROCLIM
Debug "#WSAEPROCLIM"
Case #WSAEFAULT
Debug "#WSAEFAULT"
Case 0
Debug "WSAStartup success"
Default
Debug "?"
EndSelect
If wsastartup=0
*Buffer=AllocateMemory(256)
If CallFunction(WS2_32,"gethostname",*Buffer,256)=0
Debug PeekS(*Buffer,-1,#PB_Ascii)
EndIf
EndIf
EndIf