Solved

Still stuck with MSVC++ Graphics :(

Posted on 1998-07-13
7
181 Views
Last Modified: 2010-04-01
I'm still trying to use graphics in C++, but I'm not getting anywhere.  I tried to use the CDC class, but I got a LNK1104 error that said I was missing the "nafxcwd.lib" file.  Is there a place I can get this?  Direct Draw would still be nice to use (If I had some sample code to go from).  Please help, I was so close the first time.
0
Comment
Question by:oberg
  • 4
  • 3
7 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1167718
Which version Visual C++ are you using? The file should be there after the installation. I remember you have to make some library files yourself with 16-bit version Visaul C++. Look into the MFC Technical Note "TN033: DLL Version of MFC" for how to make the library file. The DirectX SDK (now it has been integrated into the Platform SDK) has not only tutorials but also documentations and samples.
http://www.microsoft.com/directx/
0
 

Author Comment

by:oberg
ID: 1167719
I have Delelover Studio with MS VC++ 5.0.  
0
 
LVL 23

Expert Comment

by:chensu
ID: 1167720
Check your Lib directory (\Program Files\DevStudio\Vc\MFC\Lib) to see if the "nafxcwd.lib" file is there. If not, run your Visual C++ setup to install it.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

Author Comment

by:oberg
ID: 1167721
I just re-installed VC++ and I'm getting the same error.  If some one could show me some sample source code for using Direct Draw, I would be gratefull.  

0
 
LVL 23

Expert Comment

by:chensu
ID: 1167722
The missing lib file has nothing to do with DirectX. What are your project settings? Do you specify Using MFC? Did you check the mfc\lib directory? There are a lot of DirectDraw samples that come with Visual C++ 5.0.
0
 

Author Comment

by:oberg
ID: 1167723
I created a new Win32 app for my project, and wasn't prompted to make any setting choices, so I am using the default settings.  I checked my entire HD and the MSVC++ CD for the lib file and I could not find it.  I also tried the Direct Draw samples but I got some errors on undeclared identifiers.  Is there a library I need to include?
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1167724
For the newly created Win32 project, you should set it Using MFC (Project/Settings...) if you are using MFC.

For the Direct Draw samples, you may need to link with ddraw.lib.
0

Featured Post

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.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

830 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