- 760 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/03/08(木) 12:11:00 ID:BBPkbtD90]
- コンピュータ名が欲しくて、次のように書いてみたのだけど、
UWSCがアクセス違反エラーだと言ってきます。 書き方悪いですかね? DEF_DLL GetComputerNameA(var string, int):int:kernel32.dll buf = FORMAT(" ", 32) res = GetComputerNameA(buf, LENGTHB(buf)) print buf 別のAPIならOKなんですが・・・ DEF_DLL GetPrivateProfileStringA(string, string, string, var string, int, string):int:kernel32.dll buf = FORMAT(" ", 255) res = GetPrivateProfileStringA("section", "param", "default", buf, LENGTHB(buf), "test.ini") if ( res > 0 ) then print buf
|

|