Changeset 237 for Include/basic/command.sbp
- Timestamp:
- May 7, 2007, 4:22:52 PM (18 years ago)
- File:
-
- 1 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--
Note:
See TracChangeset
for help on using the changeset viewer.