Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Still stuck with MSVC++ Graphics :(

Posted on 1998-07-13
7
Medium Priority
?
185 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
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 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

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.

Question has a verified solution.

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

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

971 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