🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.visualbasic
Article #1088

Re: 関数の戻り値

#1088
From: Sato Masahiro
Date: Tue, 18 Nov 1997 00:00
46 lines
1957 bytes
In article <FUTAMURA.97Nov18170110@hilbert.elcom.nitech.ac.jp>, futamura wrote:
>$B:#!"(BWinSock$B$r;H$C$?%W%m%0%i%`$r:n@.$7$F$$$^$9!#(B
>gethostname $B4X?t$G%[%9%HL>$r<hF@$7$?$$$N$G$9$,!"(B
>$B$I$NMQ$K4X?t$r@k8@$7!"$I$N$h$&$KJ8;zNsJQ?t$K<hF@$9$l$P(B
>$B$$$$$N$+$o$+$j$^$;$s!#(B

 $B@k8@$O$3$l$+$i$?$S$?$SI,MW$K$J$k$G$7$g$&$+$i!"(B Declare $B%9%F!<%H(B
$B%a%s%H$d!"(BVB4DLL.txt $B$J$I$rD4$Y$F$_$k$3$H$r$*4+$a$7$^$9!#(B

$B$A$J$_$K!"@k8@$O0J2<$N$h$&$K$J$k$+$H;W$$$^$9!#(B

 Type WSADATA
    wVersion As Integer
    wHighVersion As Integer
    szDescription As String * 257
    szSystemStatus As String * 129
    iMaxSockets As Integer
    iMaxUdpDg As Integer
    lpVendorInfo As Long
End Type

Declare Function gethostname Lib "wsock32.dll" (ByVal s As String, namelen As Long) As Long
Declare Function WSAStartup Lib "wsock32.dll" (ByVal v As Long, w As WSADATA) As Long
Declare Function WSACleanup Lib "wsock32.dll" () As Long

 $B$^$?!"<!$N$h$&$K$9$l$P;HMQ$G$-$k$H;W$$$^$9!#(B

  Dim s As String * 1000
  Dim wd As WSADATA

  WSAStartup &H101, wd
  gethostname s, 1000
  WSACleanup
  MsgBox s

#$B4V0c$C$F$$$?$i!"$4$a$s$J$5$$!#(B

>$B$^$?!"#V#B$r;H$C$?(BWinSock$B%W%m%0%i%`$N=q@R$J$I$,$"$l$P!"(B
>$B>R2p$7$F$/$@$5$$!#(B

 $B;DG0$J$,$i!"$3$A$i$NJ}$OJ,$+$j$^$;$s!#(B

-- 
Computer Institute of Japan, Ltd.
$B:4F#@59((B masahiro@cij.co.jp
Technical Details
Message-ID: <64s42d$pk2@cij-gw.ykhm.cij.co.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <346182D3.992E5B0D@hilbert.elcom.nitech.ac.jp> <645t6d$kre@cij-gw.ykhm.cij.co.jp> <FUTAMURA.97Nov18170110@hilbert.elcom.nitech.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 105c2e,e4b840526b6dc895
X-Google-Attributes: gid105c2e,public
From: masahiro@cij.co.jp (Sato Masahiro)
Subject: Re: 関数の戻り値
Date: 1997/11/18
Message-ID: <64s42d$pk2@cij-gw.ykhm.cij.co.jp>
X-Deja-AN: 290454692
References: <346182D3.992E5B0D@hilbert.elcom.nitech.ac.jp>      <645t6d$kre@cij-gw.ykhm.cij.co.jp> <FUTAMURA.97Nov18170110@hilbert.elcom.nitech.ac.jp>
Organization: Computer Institute of Japan, Ltd.
Newsgroups: fj.lang.visualbasic