How do you get Vc6 apps to look themed in Vc8?
-
I used to use a manifest file in the resources. But now with vc8, for the same app, I want it to get autogenerated (just like when you create a new project). Where's the setting that enables themes in the app and gets the right manifest to get generated? Please help... Thanks! swine [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
I used to use a manifest file in the resources. But now with vc8, for the same app, I want it to get autogenerated (just like when you create a new project). Where's the setting that enables themes in the app and gets the right manifest to get generated? Please help... Thanks! swine [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
I had the same trouble migrating from vc71. The first thing you need to do is remove your old manifest file from the resources. Secondly, you need to add a small snippet of code to your vc6 project that exists in new vc8 projects, but is missing from migrated projects. Create a new vc8 mfc project - at the bottom of the stdafx.h file, you'll see something like this:
... #ifdef _UNICODE ... #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") ... #endif
Copy the entire #ifdef block to the stdafx.h file of your old project and it should remedy the problem. "My dog worries about the economy. Alpo is up to 99 cents a can. That's almost seven dollars in dog money" - Wacky humour found in a business magazine -
I had the same trouble migrating from vc71. The first thing you need to do is remove your old manifest file from the resources. Secondly, you need to add a small snippet of code to your vc6 project that exists in new vc8 projects, but is missing from migrated projects. Create a new vc8 mfc project - at the bottom of the stdafx.h file, you'll see something like this:
... #ifdef _UNICODE ... #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") ... #endif
Copy the entire #ifdef block to the stdafx.h file of your old project and it should remedy the problem. "My dog worries about the economy. Alpo is up to 99 cents a can. That's almost seven dollars in dog money" - Wacky humour found in a business magazineok i did that, and did a rebuild all, but it still doesn't work... anything else? thanks [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
ok i did that, and did a rebuild all, but it still doesn't work... anything else? thanks [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
Strange, it worked for me and a handful of others I've talked to. I wonder if there's a setting that doesn't get updated from VC6 to 2005 that does with 2003 to 2005. I would just create a simple VS 2005 project, and verify that the Linker -> Manifest File and Manifest Tool settings match that of your updated project. If they're the same, and you still can't get it to work, I'd try posting something to the MSDN forums: http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=8&SiteID=1 "My dog worries about the economy. Alpo is up to 99 cents a can. That's almost seven dollars in dog money" - Wacky humour found in a business magazine
-
ok i did that, and did a rebuild all, but it still doesn't work... anything else? thanks [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
Try removing the
#ifdef _UNICODE .... #endif
block
-Prakash
-
Try removing the
#ifdef _UNICODE .... #endif
block
-Prakash
Brilliant! That did it.... Thanks :) [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.