You are on the right track with your efforts: it isnt easy at all. But streaming from an IP camera should do some standard software or a simple website with some video control. The article Yet another Web Camera control
looks nicely, but it is C#.
The examples from vlc or ffmpeg should give you enough insight for some solution. In my company we are usingffmepg
code and are fine with it. Maybe you should consider some UI library like Qt or MFC to build the app.
Be careful with the error handling because has to be most in depth. Check every return code you get and provide some error handling like missing data or lost stream reconnect.