In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-12-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shares with you the content of a sample analysis of VS 2008 feature pack controls. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
A problem was found during the use of the VS 2008 vc Enhancement Pack. Mfc was upgraded in VS 2008 feature pack, making it easy for mfc to build an office 2007-style interface. The questions are as follows:
The mfc office 2007 interface established by the wizard can work normally. Using the simplest dialog project, and then using office 2007, there is an error at:
BOOL _ stdcall CMFCVisualManagerOffice2007::SetStyle (Style style, LPCTSTR lpszPath) {if (m_Style = = style & & m_hinstRes > (HINSTANCE) 32) {return TRUE;} UNREFERENCED_PARAMETER (lpszPath); CString strStyle (GetStyleResourceID (style)); HINSTANCE hinstRes = AfxFindResourceHandle (strStyle, AFX_RT_STYLE_XML); if (: FindResource (hinstRes, strStyle, AFX_RT_STYLE_XML) = = NULL) {TRACE (_ T ("Cannot load Style:% s\ r\ n"), strStyle) ASSERT (FALSE); return FALSE;} CleanStyle (); m_Style = style; SetResourceHandle (hinstRes); m_bAutoFreeRes = TRUE; return TRUE;}
Can you see what the problem is? From the point of view of the code, it is a resource loading error. I once compared the difference between the code I wrote and the engineering code that could be run, and there was nothing wrong with the code. After searching on the Internet, VS 2008 feature pack has not encountered this problem in Chinese, only on a foreigner's forum. Discussion and discussion, writing is the problem of loading local resources, which is more fun. There are always some unknown mistakes in the old and new things. If you meet him, you still have to take care of him.
VS 2008 feature pack is really a good thing, at least with this, you can get rid of that pirated BCGCBPro. I think VisualManager still lacks some functions, for example, Dialog cannot support VisualManager. After looking at the code of CFrameImpl, I think it is OK to write a DialogImpl by visiting the model.
Thank you for reading! This is the end of this article on "sample Analysis of VS 2008 feature pack controls". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.