What's new

More win32 help...

ShizZy

Emulator Developer
Seems I never learned how to use Win32. Oh well, maybe someone can help me here. I'm trying to figure out how to do a list view window such as what many N64 emulators use to display rom lists. Any list view stuff I can find is only for dialog boxes. Can anyone help me? I tried looking at some other emus, but the source is usually just too interwoven and cluttered. :borg:
 
OP
ShizZy

ShizZy

Emulator Developer
Thanks for the tips..I'm MSDN searching impaired. I seem to achieved somewhat what I was looking for. Do you know how they detect a file format (the roms) in a certain directory?
 

smcd

Active member
As far as I know, most roms have a header (like the NES format for example). I'd search by the most common extensions for the emulated system (v64, z64, jap, pal, usa, rom are the ones pj64 looks for I'm assuming since those are the ones it has in the shell integration dialog) After being pointed to a directory, do a FindFirstFile/FindNextFile loop to search all the files, and optionally recurse into subdirectories if you like, then you can only open the files that match the typical extensions?

By the way to search MSDN, use google... www.google.com/search?q=msdn+your+search+terms+go+here

I used www.google.com/search?q=msdn+common+control+listview+example i think it was
 
Last edited:

Top