2011-04-04 15 views
22

जब मैं फ़ाइल कुलपति ++ 2005 कुलपति ++ 2008 तक चलाने का प्रयास:afxwin.h फ़ाइल कुलपति ++ एक्सप्रेस में याद आ रही है संस्करण

1>------ Build started: Project: canvas, Configuration: Debug Win32 ------ 
1>Compiling... 
1>canvasApp.cpp 
1>c:\documents and settings\ram\my documents\visual studio 2008\demo\stdafx.h(1) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory 
1>canvasFrame.cpp 
1>c:\documents and settings\ram\my documents\visual studio 2008\demo\stdafx.h(1) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory 
1>Generating Code... 
1>Build log was saved at "file://c:\Documents and Settings\ram\My Documents\Visual Studio 2008\demo\Debug\BuildLog.htm" 
1>canvas - 2 error(s), 0 warning(s) 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

उत्तर

7

शीर्षलेख सहित afxwin.h एमएफसी का उपयोग सिग्नल करता है। http://www.codeproject.com/Articles/30439/How-to-compile-MFC-code-in-Visual-C-Express

जुड़ा हुआ दस्तावेज़ में कुछ अतिरिक्त नोट्स:

  • संदर्भित किया जाता DDK अब Windows Driver Kit का एक हिस्सा है ये निर्देश MFC कोड संकलन पाने के लिए मदद कर सकता है।
  • बेशक आपको आईएसओ छवि को जलाने की आवश्यकता नहीं है।
  • चरण 5 अब और आवश्यक नहीं है।
+0

चरण 5 की अभी भी आवश्यकता है। आपकी परियोजना उन पंक्तियों का उपयोग नहीं कर सकती है, लेकिन वे वैसे भी छोटी हैं और उन्हें ठीक करने की आवश्यकता है। – malat

6

मुझे लगता है कि प्रश्न एक्सप्रेस संस्करण के बारे में है, लेकिन यह विषय Google खोज में पॉप अप करना आसान है, और अन्य संस्करणों के लिए कोई समाधान नहीं है।

तो। यदि आप एक्सप्रेस को छोड़कर किसी भी वीएस संस्करण के साथ इस समस्या में भाग लेते हैं, तो आप स्थापना को फिर से शुरू कर सकते हैं और एमएफसी फाइलों को शामिल कर सकते हैं।

2

मुझे एक ही समस्या का सामना करना पड़ा। सबसे आसान बात यह है कि नि: शुल्क विजुअल स्टूडियो सामुदायिक 2015 को इस प्रश्न में उत्तर दिए गए Is MFC only available with Visual Studio, and not Visual C++ Express?

संबंधित मुद्दे