Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Directory Listing In Asm?

Featured Replies

Posted

I know this should be simple and to many of you it probably is, but I am using RadASM and have a dialog with a listbox on it. What I want to do is fill this listbox with every .mp3 file in D:\Music. I have tried the invoke DlgDirList and the SendMessage LB_DIR but with no success. Program would either crash or simply give me an empty list box.

I did debug it with olly, and still am unable to find out the solution. If anyone could, can I get a working way to do this?

Please remember that the less code the better as asm isnt my strongest language. Thanks guys.

handle	dd	0
wfd WIN32_FIND_DATA <>
folder db "C:\music\*.mp3",0 invoke FindFirstFile,offset folder,offset wfd
mov handle,eax
.While eax != ERROR_BAD_PATHNAME && eax != NULL
invoke GetLastError
invoke SendDlgItemMessage, hWin, IDC_LST1, LB_ADDSTRING, handle, offset wfd.cFileName
invoke FindNextFile, handle, offset wfd
.endw

Edited by zako

  • Author

Awesome. Thanks zako. Worked just fine!

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.