I am having trouble finding a simple example of how to get the video length of a file programmatically. Many people say, oh use this library/wrapper or whatever, but do not
The open-source tool MediaInfo provides comprehensive meta-data for media files and can be used easily from your own application in DLL form:
void* Hande=MediaInfo::OpenQuick("**FILENAME**", "**VERSION**;**APP_NAME**;**APP_VERSION**") MediaInfo::Inform()