View Single Post
Old November 17th, 2005, 10:34 PM
ConstantineAugustus ConstantineAugustus is offline
Registered User
Join Date: Nov 2005
Location: Harlingen, Texas, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

OK, I was able to accidentally solve the problem on my own. To tell the truth, I get a little bit absent minded about these fixes, so I'm going to record this fix here in case it comes up again:

1) When you discover what libraries you need, put their headers at the beginning of the program.

#include "stdafx.h"
#include "winuser.h"
#include "wingdi.h"
#include <ios.h>
#include <tchar.h>

2)Set the parameters:
     ;)In General, make sure the Microsoft Foundation Classes has
         the appropriate entry. In my case, it was "Use MFC in a
         shared DLL"

3) Project=>Settings=>Link
     ;)In Object/Library Modules, list the libraries. In may case,
     they were: user32.lib gdi32.lib .

That got rid of 98% of my compile problems. I am still having problems with:

MSVCRTD.lib(crtexe.obj):error LNK2001: unresolved external symbol _main

However, I got rid of most of the problems. I'll be researching this problem next.I may post on this later.