Solved

Still stuck with MSVC++ Graphics :(

Posted on 1998-07-13
7
183 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
[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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

635 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