Hello, I am trying to compile a WRAPI test program and am having MFC difficulties.
Background: I am working in C++ .NET 2003 and the program instructions assume Studio 6.0. Reading threads with other people having earlier compile difficulties over in the Wireless question area, I added the next two lines to stdafx.h
Without those, the next, essential line, explodes messily in bad syntax.
Those includes mean the test program, otherwise a console app, needs the appropriate dll.
When I build the program it compiles completely. On running it tells me "the application has failed to start because MFC42D.DLL was not found. Re-installing the applicaiton may fix the problem."
No biggie. I copied MFC42D.dll to my source directory, rebuilt, and got: "The application or DLL c:\<source>\MFC42D.DLL is not a valid Windows image. Please check this against your installation diskette."
I don't know enough about MFC to do more then flail at a solution. I'd appreciate advice on any of the following:
1) An explanation of the above and how to fix it.
2) A work around. Then test program is a console app. Does ntddndis.h needs MFC (I don't know)? If not, how can I replace the afx.h & afxwin.h with anything?
3) I've looked for MFC42D.DLL on my .NET install disks and on Microsoft support. Where can I find a valid Windows image?
4) Another way to solve this problem.