473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

file exists but still getting file not found error

lifeisgreat20009
I am getting the following error :-

1>------ Build started: Project: Polygon Drawer, Configuration: Debug Win32 ------
1>Compiling...

1>Dialog.cpp

1>g:\my subjects\3rd semester\project samples for 3rd semester\visual c++ project samples\polygon drawer\dialog.h(4) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory

1>DrawerApp.cpp

1>g:\my subjects\3rd semester\project samples for 3rd semester\visual c++ project samples\polygon drawer\mainfrm.h(8) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory

1>MainFrm.cpp

1>g:\my subjects\3rd semester\project samples for 3rd semester\visual c++ project samples\polygon drawer\mainfrm.h(8) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory

1>Generating Code...

1>Build log was saved at "file://g:\MY SUBJECTS\3RD SEMESTER\PROJECT SAMPLES FOR 3RD SEMESTER\VISUAL C++ PROJECT SAMPLES\Polygon Drawer\Debug\BuildLog.htm"

1>Polygon Drawer - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I get the above error when I execute the code of my VC++ project....
I searched for this file afxwin.h in my PC and copied it to the directory
g:\my subjects\3rd semester\project samples for 3rd semester\visual c++ project samples\polygon drawer\

But still getting the same error after compiling and executing....
Please somebody help me regarding this................
Aug 6 '08 #1
3 14650
weaknessforcats
9,208 Expert Mod 8TB
How is afxwin.h included?

If it is:

#include "afxwin.h"

then what you did in copying the file to your project directory will work.

If it is:

#include <afxwin.h>

then the file must be along a pre-defined path. (Tools/Options/Projects and Solutions/VC++ Directories/on right select "include files").
Aug 6 '08 #2
Banfa
9,065 Expert Mod 8TB
afxwin.h is an MFC include file (and therefore I assume you are creating an MFC program). You should not copy it to your source directory or anywhere else.

If the compiler can not find it then the compiler is not set-up correctly.

Where did you find this file on your computer? Were any other MFC include files there? How are you calling the compiler, are you setting the include paths correctly?
Aug 6 '08 #3
Studlyami
464 Expert 256MB
If you are using visual C++ express MFC is not supported. There have been work arounds posted. You can read this thread for more details.
Aug 7 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: lamar_air | last post by:
I have a python script and i want to delete a file on my computer c:\....\...\.. .txt what's the script to do this? I know how to write to files but i also need to know how to delete a file.
9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
5
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up...
6
by: Chad Crowder | last post by:
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
7
by: sprash | last post by:
Newbie question: I'm trying to determine if a file physically exists regardless of the permissions on it Using File.Exists() returns false if it physically exists but the process does not...
2
ADezii
by: ADezii | last post by:
Many times when writing VBA code, we find the need to work with Files in one form or another. Whatever the process may be, we need to be sure that a File is present in a specified location. One...
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.