انا مبرمج دلفي من منتدي الدلفي الي تحتكوا
:D وانا استخدم فيجوال سي ++ لا اعرف لماذا لا استطيع عمل كومبايل لهذا الملف المرفق
ولمذا يظهر لي هذا الخطا باستمرار '
stdafx.h': No such file or directory
انا مبرمج دلفي من منتدي الدلفي الي تحتكوا
:D وانا استخدم فيجوال سي ++ لا اعرف لماذا لا استطيع عمل كومبايل لهذا الملف المرفق
ولمذا يظهر لي هذا الخطا باستمرار '
stdafx.h': No such file or directory
stdafx ملفات ينشئها VC++ عند استخدام خاصية precompiled headers وغالبا ما يقوم المبرمج بوضع الـ includes التي سبق برمجتها في هذه الملفات والهدف منها ان هذه الملفات تترجم مرة واحدة فقط ولذلك تقلل وقت الترجمة في المرات التالية.
وهذا نص الملفات من مترجم visual c++ 2008
stdafx.h
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here
targetver.h
#pragma once // The following macros define the minimum required platform. The minimum required platform // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run // your application. The macros work by enabling all features available on platform versions up to and // including the version specified. // Modify the following defines if you have to target a platform prior to the ones specified below. // Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. #endif
stdafx.cpp
// stdafx.cpp : source file that includes just the standard includes // testyz.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
تم تعديل هذه المشاركة بواسطة الصليحي في 13 مايو 2008 في 20:37
الخيل والليل والبيداء تعرفني ::: والثور والبغل والاغنام والبقرُ
اتوقع ان ملف .h هذا تحتاجه مكتبة MFC ؟
لا تحاول التعديل على الcode الذي يتم انشائه من نفس المعالج او wizard . فقط قم باضافة ما تريد ، وفي مرحلة متقدمة باذن الله تفهم الاكواد كاملة وتقدر تعدل عليها
تم تعديل هذه المشاركة بواسطة مجلـد جديـد في 13 مايو 2008 في 20:38
انا استخدم فيجوال سي++6
ولا اعرف لماذا لا يتم بناء البرنامج حسب كلامك لو شلته البرنامج هيتبني عادي ولكن ابطاء هل هذا صحيح
لو شلته ربما لازم اولا "نظريا" نسخ المحتوى الى برنامجك، مثلا تخيل انك ضميت مكتبة iostream في ملف stdafx فلو مسحت الملف لن تستطيع الوصول الى الدوال cout..etc في برنامجك الا اذا ضميت المكتبة في مكان اخر في برنامجك.
البرنامج المرفق لايتعرف على النوع BYTE
الخيل والليل والبيداء تعرفني ::: والثور والبغل والاغنام والبقرُ
المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية
جارٍ التحقق من المتواجدين…