[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 2ch.scのread.cgiへ]
Update time : 12/13 05:17 / Filesize : 519 KB / Number-of Response : 1084
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

【QBASIC互換!?】FreeBasic【GPL】



722 名前:デフォルトの名無しさん mailto:sage [2016/09/18(日) 23:19:13.94 ID:/Q0b75iC.net]
>>685
Windows APIを調べて書き直して、動作確認してみた
色々と勘違いと間違いがあったので動いたコード載せておくよ

#Include "windows.bi"

Const StrLength As Long = 5120

Dim IniFile As String = ExePath + "/VB.ini"
Dim strValue As ZString*StrLength
Dim strValuePtr As ZString Ptr = @strValue
Dim strValueSize As Long = GetPrivateProfileSectionNames(strValuePtr, StrLength, IniFile)

If (strValueSize + 2) = StrLength Then End ' この判定はもっと良い方法があるはず

Dim count As Integer
Dim Zcount As Integer

While count < strValueSize
Dim tmp As String = *strValuePtr
Dim length As Integer = Len(tmp) + 1
count += length
strValuePtr += length
Zcount += 1
Print tmp
If Zcount > 1000 Then Exit While
Wend






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧](;´Д`)<519KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef