Hi Hooman,
Thanks so much for your post. Sorry for not responding sooner.
There are no guards in the .cpp file. This would seem to suggest that the .cpp file is NOT part of the main project. The header file is used to basically link the two parts together. Remove the odasl.cpp file from your project and try again.....
Just make sure not to add any header files as if they were source code files. You do *not* compile header files, only include them from compiled modules (aka "source" files - .cpp).
Per your suggestions, I excluded the odasl.cpp file and all the header files from the project and tried to build it again. This eliminated the nine "definition of dllimport function not allowed" errors but unfortunately left me with the following new error:
.\OP2Script.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
I searched my hard drive for afxres.h, and found that I don't have it, then wasted wasted considerably more time looking online for a copy of the file that I could download. The only one I could find was at
koders.com and it looks line some kind of dummy file, since it only contains the following three lines of code:
#ifndef AFXRES_H
#define AFXRES_H
#endif // AFXRES_H
Also, when I tried using it I got the same two errors that I got when I simply commented out the
#include "afxres.h" line:
.\OP2Script.rc(20) : error RC2144 : PRIMARY LANGUAGE ID not a number
.\OP2Script.rc(29) : error RC2135 : file not found: 907
Several places during my search I read that
#include "windows.h" can be substituted for
#include "afxres.h" when MFC or ATL support aren't required. So I tried that. Didn't work. Resulted in seventy-some "LNK2019: unresolved external symbol " errors!!!
The other thing I gathered from my reading is that VC++ 2008 Express Edition doesn't have MFC or ATL support, so if either of those are required I may be screwed.