First Step to Try Sample on Visual C++

To whom may help me, First, After building OPEN CASCADE Examples on Visual C++, I still got one error message. Message as following: ...\Sample2DDisplay.rc(517) : fatal error RC1015: cannot open include file 'afxres.rc'. Second, I tried to install OPEN CASCADE. I couldn't get a folder named inc.

Philippe Poncot's picture

This Folder inc is delivered on the Source Distribution

h-chang's picture

I got the folder named inc. But I still get one error message after building MFC Samples on Visual C++. The Error Message as following : ...\Sample2DDisplay.rc(517) : fatal error RC1015: cannot open include file 'afxres.rc'. Is anybody can help me to solve this problem. Thanks.

shylesh's picture

try including mfc include/library paths.'s picture

I am trying to copy files(.cpp,.h,rc.res etc) from the CD provide by a book.But there is neither project nor workspace file.What i do is I start my Win32 application with empty project. nad then add all files from CD into it.When i compile,Error comes as "fatal error RC1015:cannot open resource.h file"
Can someone help me to work it out

Nilesh's picture

Dear Tarminder,

If u can locate samples/mfc folder then u should be able to find all the sample directories with all the files including visual studio workspaces.

y dont u download ocas installable from internet and install it again with custom option so that u can select whatever type of samples(java/mfc/qt) u require?

bst regards