can you give me a complete C++ program that will create a WDX total commander plugin to show MIDI file properties like tempo etc?
I asked for WDX plugin instead of a property handler shell extension because it is much simpler
My windows copilot isn't on the same page as the mighty mythos AI, but it presented a reasonable source file. I couldn't tell what was it doing with the MIDI file headers, but the WDX plugin interface (DLL exports) seemed ok. Of course it didn't work 100%, but with a few corrections here and there I had a working prototype. You will find more information on the "discussion" we had in the source code:
Click to download C++ source code and WDX64 compiled plugin
To use it with xplorer² for MIDI details "install" the contained MIDI.WDX64 using this tool and search for MIDI in the column selection dialog
Here are a few anecdotes of this mini vibe-coding adventure. In the first round Copilot gave me a source code with char* 1-byte strings. When I asked for LPCTSTR instead (this is the 3rd millennium) the returned code was largely rubbish. WDX interface is a muddle, some of its exports are stuck with char* arguments, whereas some take wide strings. Our AI friend got its knickers in a twist here. It also completely forgot to adjust the string capacity (maxlen veriable) for wide character support, a potential GPF risk. A weathered human programmer (me) caught these elementary mistakes.
The AI also insisted that ContentGetDetectString returned nothing (void) whereas all the headers I know of declare it returning an integer. It wouldn't take my word for it, neither did it trust the numerous website references I presented. Stubborn isn't the word for it!?
Post a comment on this topic »