Solved

Still stuck with MSVC++ Graphics :(

Posted on 1998-07-13
7
177 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now