I am trying to compile a code example from a hardware protection key
supplier.
The example should compile but does not on my VS2005 installation.
I suspect that I have not done something I need to do inside the
VS2005 IDE, but being a complete novice in C++ and Visual Studio 2005
I don't know what it can be....
The first problem was that it stopped on this include line:
#include <istream.h>
saying the file could not be found.
After looking in the VC/include dir below VS2005 I found a file called
istream (no extension), which seemed to be a header file so I renamed
it to istream.h.
Next I received no less than 10 errors (lines wrapped due to
newsreader):
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(72) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(73) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(76) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(77) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(84) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(91) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(100) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(108) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(116) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\engineering\projects\bosse\safenet\spquery\dsdll.h(124) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
If I doubleclick the first error I get to this piece of code:
extern __declspec(dllexport) WINAPI SAFEInitGlobal(unsigned char*);
typedef (WINAPI *TSafeInitGlobalFnPtr)(unsigned char*);
extern __declspec(dllexport) WINAPI DecodeKeyID(
unsigned char*,
char*,
RESULTREC*,
unsigned short*);
typedef (WINAPI *TDecodeKeyIDFnPtr)(unsigned
char*,char*,RESULTREC*,unsigned short*);
extern __declspec(dllexport) WINAPI GenerateUpdateStr(
unsigned char *GlobPtr,
SAFECOMMANDREC *safe_commands,
short count,
char *updateStr,
PROD_LIST *prod_list_ptr,
BOOL ScrambleOrder);
As far as I can see there are no unspecified types anywhere here, so
what is the problem????
Now I am at road's end, I have not a single clue as to why the errors
happen. Apparently this compiles fine in an earlier version of VS
(when I load the project it says it has to convert to the new format
and I cannot go back to the old environment afterwards).
Any help appreciated!
(Bear in mind that I am not used to working with VS2005, I have only
worked with VB6 (a lot) and Borland products....
/Bo
Bo Berglund
bo.berglund(at)nospam.telia.com