I am trying to develop a C++ application using QGIS. I have to load a tif file and show it. First I wrote an app similar to samples on the internet. It works on Linux, but it does not work on Windows. I compiled QGIS libraries myself using VS2008 and also tried binaries downloaded using Osgeo4w installer.
The app loads the plugins and displays the canvas, but cannot paint the raster layer on it. So I just can see a blank white canvas window.
The debug output says "Layer not found in registry", however I do add it to registry as follows: