Changeset 237 for Include/basic
- Timestamp:
- May 7, 2007, 4:22:52 PM (18 years ago)
- Location:
- Include/basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/command.sbp
r214 r237 74 74 Macro MSGBOX(hwnd As HWND, str As String)(title As String, boxType As DWord, ByRef retAns As DWord) 75 75 If VarPtr(retAns) Then 76 retAns = _System_MessageBox(hwnd, str, title, boxType)76 retAns = _System_MessageBox(hwnd, ToSCStr(str), ToSCStr(title), boxType) 77 77 Else 78 _System_MessageBox(hwnd, str, title, boxType)78 _System_MessageBox(hwnd, ToSCStr(str), ToSCStr(title), boxType) 79 79 End If 80 80 End Macro … … 333 333 If length_buf>=length_num Then 334 334 '通常時 335 _System_FillChar(VarPtr(buffer [i3]), length_buf - length_num, &h20) 'Asc(" ")335 _System_FillChar(VarPtr(buffer.Chars[i3]), length_buf - length_num, &h20) 'Asc(" ") 336 336 337 337 i3 += length_buf - length_num … … 345 345 346 346 If dec > 0 Then 347 memcpy(VarPtr(buffer [i3]), temp2, SizeOf (StrChar) * length_num)347 memcpy(VarPtr(buffer.Chars[i3]), temp2, SizeOf (StrChar) * length_num) 348 348 Else 349 349 buffer[i3] = &H30 … … 353 353 Else 354 354 '表示桁が足りないとき 355 _System_FillChar(VarPtr(buffer [i3]), length_buf,&h23) 'Asc("#")355 _System_FillChar(VarPtr(buffer.Chars[i3]), length_buf, &h23) 'Asc("#") 356 356 i3 += length_buf 357 357 End If … … 378 378 i2++ 379 379 380 'lstrcat(StrPtr(buffer)+i3,_System_UsingStrData[ParmNum]) 381 memcpy(VarPtr(buffer[i3 + lstrlen(VarPtr(buffer[i3]))]), _System_UsingStrData[ParmNum], _ 382 SizeOf (StrChar) * lstrlen(_System_UsingStrData[ParmNum])) 380 lstrcat(VarPtr(buffer.Chars[i3]), _System_UsingStrData[ParmNum]) 383 381 i3 += lstrlen(_System_UsingStrData[ParmNum]) 384 382 ElseIf UsingStr[i2]=Asc("&") Then … … 396 394 i5=i4 397 395 Else 398 _System_FillChar(VarPtr(buffer [i3]), i4, &h20) 'Asc(" ")396 _System_FillChar(VarPtr(buffer.Chars[i3]), i4, &h20) 'Asc(" ") 399 397 End If 400 memcpy(VarPtr(buffer [i3]), _System_UsingStrData[ParmNum], SizeOf (StrChar) * i5)398 memcpy(VarPtr(buffer.Chars[i3]), _System_UsingStrData[ParmNum], SizeOf (StrChar) * i5) 401 399 i3 += i4 402 400 Else … … 431 429 End Macro 432 430 Macro GET(FileNumber As Long, RecodeNumber As Long, ByRef lpBuffer As String) 433 Dim dwAccessByte As Long431 Dim dwAccessByte As DWord 434 432 435 433 FileNumber-- … … 444 442 End Macro 445 443 Macro PUT(FileNumber As Long, RecodeNumber As Long, ByRef lpBuffer As String) 446 Dim dwAccessByte As Long444 Dim dwAccessByte As DWord 447 445 448 446 FileNumber-- -
Include/basic/function.sbp
r223 r237 508 508 i2=0 509 509 Do 510 Oct$[i2] = &h30 +((num \ CDWord(8 ^ i)) And &H07) ' &h30 = Asc("0")510 Oct$[i2] = &h30 +((num \ CDWord(8 ^ i)) And &H07) As StrChar ' &h30 = Asc("0") 511 511 If i=0 Then Exit Do 512 512 i-- … … 715 715 Dim i As Long 716 716 For i=0 To num-1 717 memcpy(VarPtr(String$ [i*length]), StrPtr(buf), SizeOf (StrChar) * length)717 memcpy(VarPtr(String$.Chars[i*length]), StrPtr(buf), SizeOf (StrChar) * length) 718 718 Next 719 719 End Function … … 1194 1194 Dim i = 0 As SIZE_T 1195 1195 For i = 0 To ELM(size) 1196 _System_StrCmp = s1[i] - s2[i]1197 If _System_StrCmp <> 0 Then1196 _System_StrCmpN = s1[i] - s2[i] 1197 If _System_StrCmpN <> 0 Then 1198 1198 Exit Function 1199 1199 End If … … 1204 1204 Dim i = 0 As SIZE_T 1205 1205 For i = 0 To ELM(size) 1206 _System_StrCmp = s1[i] - s2[i]1207 If _System_StrCmp <> 0 Then1206 _System_StrCmpN = s1[i] - s2[i] 1207 If _System_StrCmpN <> 0 Then 1208 1208 Exit Function 1209 1209 End If
Note:
See TracChangeset
for help on using the changeset viewer.