?
Solved

Building the older VC++ sample projects

Posted on 1998-06-04
10
Medium Priority
?
322 Views
Last Modified: 2013-12-03
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
Comment
Question by:bod_1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 80 total points
ID: 1406898
Open the MAKEFILE and change the output filename and debug filename in the Project Settings to the actual filename. Then build it.
0
 

Author Comment

by:bod_1
ID: 1406899
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
 
LVL 23

Expert Comment

by:chensu
ID: 1406900
>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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:bod_1
ID: 1406901
I renamed the makefile same name as the exe name (mak extension) but DevStudio still wont open the project.

0
 
LVL 23

Expert Comment

by:chensu
ID: 1406902
What do you mean when you say "DevStudio still wont open the project"? What's the message?
0
 

Author Comment

by:bod_1
ID: 1406903
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
 
LVL 23

Expert Comment

by:chensu
ID: 1406904
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
 

Author Comment

by:bod_1
ID: 1406905
OK.
Thanks Chensu.

Last thing when you have time, what good are those MAKEFILEs then?
Different IDE from DevStudio?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1406906
MAKEFILEs can be recognized be other compilers, such as Borland C++.
0
 

Author Comment

by:bod_1
ID: 1406907
Cool,  I have Borland version 4.something.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question