Wednesday, January 08, 2014

compiling with Visual Studio 2008 Express

Some of the stuff I went through - once again, just a link dump:

fatal error C1083: Cannot open include file: 'afxwin.h'

Apparently this is because MFC is not included with VS Express.

https://www.google.co.in/search?q=creating+mfc+with+visual+studio+2008+express

http://www.codeproject.com/Articles/30439/How-to-compile-MFC-code-in-Visual-C-Express
had to google for ddk, found a link at
http://forums.mydigitallife.info/threads/16561-Looking-for-quot-Windows-Server-2003-SP1-DDK-quot-download-link-needed


Similarly, after building in debug mode, there was the error on running the application that MFC42D.DLL was not found. Since I did have  MFC42.DLL, I just rebuilt it in Release configuration, and the application worked fine. Other resources for these are this MS forum thread and this useful tool.

Initializing window size on starting of application using a call to MoveWindow. Unfortunately, it does not allow the window size to be greater than the size of the screen. So, I can't make AVI using AVI generator demo which are 1920 x 1080, since the window decoration makes the client rect smaller than 1920 x 1080 even if my screen resolution is that big. 

Tried with adding scrollbars, but only the part of the window which is visible is rendered in the avi. Rest is black. 
hardcoded to
createwindow()
cs.style |=   WS_HSCROLL | WS_VSCROLL;

ReSizeGLScene()
hard coded
glViewport(0,0,1920,1080);   
and in setbitmapheader in avigenerator

// changing size of image so dimension are multiple of 4
    //size.cx=(size.cx/4)*4;
    //size.cy=(size.cy/4)*4;
    // hack - hard coding to 1920 x 1080
    size.cx=1920;
    size.cy=1080;

Have stopped working on this for now. Maybe Fluag will work if the developer responds.

No comments:

Post a Comment