• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Building the older VC++ sample projects

Hi,
I was wondering how to build the older MFC samples (the ones with a MAKEFILE that has no extension).
Every time that I try to open it as a workspace, it just opens the MAKEFILE.  I've also tried using NMAKE but I can't seem to figure it out.
I'm using VC++4.
Thanks
0
bod_1
Asked:
bod_1
  • 5
  • 5
1 Solution
 
chensuCommented:
Open the MAKEFILE and change the output filename and debug filename in the Project Settings to the actual filename. Then build it.
0
 
bod_1Author Commented:
OK, I open the MAKEFILE and I see something like this at the beginning;

##### Module Macro #####
NAME      = tdosmem
SRCS      = $(NAME).c
OBJS      =

I don't understand where I'm supposed to change the filename;
In the project settings in DevStudio? In the MAKEFILE after NAME?
When I open the MAKEFILE in dev studio it doesn't open any of the project files.

The project has 8 files;
.obj
.asm
.rc
.def
resource.h
tdosmem.h & .c
MAKEFILE

?

0
 
chensuCommented:
>In the project settings in DevStudio? In the MAKEFILE after NAME?

The project settings in DevStudio. Another way is to simply rename the MAKEFILE as xxx.mak, xxx is the same as the .exe file name.

>When I open the MAKEFILE in dev studio it doesn't open any of the project files.

Yes, it is true. Because it is the old format.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bod_1Author Commented:
I renamed the makefile same name as the exe name (mak extension) but DevStudio still wont open the project.

0
 
chensuCommented:
What do you mean when you say "DevStudio still wont open the project"? What's the message?
0
 
bod_1Author Commented:
It says that the makefile was not generated by Developer Studio ... gonna wrap the makefile ... are you sure you want to convert?

I say sure and the MAKEFILE is the only file included in the Class View or File View.

Most of the older C code samples have this MAKEFILE with no extension and Developer Studio doesn't seem to know what to do with them.

Is there any way to change those MAKEFILEs into a project workspace or a .mak extension file that DevStudio can read and open properly?
0
 
chensuCommented:
There is nothing wrong. You cannot see the files in the Class View or File View. The only way to convert it into a project workspace is to create it manually. Add the files into the project and set the settings according to the MAKEFILE.
0
 
bod_1Author Commented:
OK.
Thanks Chensu.

Last thing when you have time, what good are those MAKEFILEs then?
Different IDE from DevStudio?
0
 
chensuCommented:
MAKEFILEs can be recognized be other compilers, such as Borland C++.
0
 
bod_1Author Commented:
Cool,  I have Borland version 4.something.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now