I am using Visual C++ 2005 Exptress Eidtion Beta 1 to build a project. The following were reported:
1..\Sample1.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
2.LINK : fatal error LNK1104: cannot open file 'odbc32.lib' (after I canceled afxres.h)
I have tried to add "MFC ODBC Consumer class" in the project. However, it cann't be found!
How can I solve this problem. Thanks.

ODBC32
jpvalappil
The library you're looking for is part of the 'Platform SDK'...there are different flavours depending on which version of windows you're targeting. You can find more info on the Platform SDK's at:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/sdkintro/sdkintro/devdoc_platform_software_development_kit_start_page.asp
...including the download site. (they're pretty big downloads :)
Davey
Blacata
I am trying to build the MediaShare project in VC++ Express. I have the same failure looking for afxres.h .
I have downloaded and installed the platform SDK.
I would like to know - What do I do to the installed SDK to make this message go away (short of eliminating app.rc which contains that reference) when I press the [F7] button in VC++ Express in an attemp to build the soln/proj.
Thor Laage-Petersen
Try replacing the line #include "afxres.h" with #include "mfc/afxres.h". That fixed the problem for me anyway (I'm using Visual Studio 2005 Express Edition).
bhan
I've got the same problem, the linker can't open odbc32.lib. As I took a look into X/Microsoft Visual Studio 8/VC/lib/ I saw that this library isn't there.
VC added the 2 libraries odbc32.lib and odbcpp32.lib automatically to the list of adittional dependencies. I think my program doesn't need these libraries (it's a simple console application that doesn't use ODBC) so I removed them from this list.
Now I've got some Bugs in my application but I don't think that they depend on these 2 libraries.
But I ask myself why VC++8 Beta 2 adds these libraries automatically to the adittional dependencies when they're not delivered with the Program. Perhaps it's a bug Or are these libraries only available for MSDN Subscribers I think the 2nd variant will be the right.
P.S.: Excuse my bad english style, there are a few months between the last time I posted s.th. in English.