Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Still stuck with MSVC++ Graphics :(

Posted on 1998-07-13
7
Medium Priority
?
184 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 100 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

670 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