-
VC++ with AS/400
I am using IBM Client Access with Visual studio 6.0 (VC++) but when I try to compile the code I am getting compilation error in the following code:
“
#include <basetsd.h>
typedef ULONG_PTR cwb_Handle;
typedef cwb_Handle cwbSV_ErrHandle;
typedef unsigned long cwb_Boolean;
“
The lines which are marked as bold I am getting error on those lines (compilation error)
Can you please help me out how to use this toolkit library with my VC++ code?
-
Re: VC++ with AS/400
I don't see any bold lines or a compiler error.
-
Re: VC++ with AS/400
the first two lines after header files.
typedef ULONG_PTR cwb_Handle;
typedef cwb_Handle cwbSV_ErrHandle;
the error is undeclared indentifier cwb_Handle.
While i have included all header files nad library files for iBM Toolkit.
-
Re: VC++ with AS/400
I do not see a typedef for ULONG_PTR in basetsd.h. You can use one of the other pointer typedef or provide a definition for it. Like following picked from MSDN
Code:
#if defined(_WIN64)
typedef unsigned __int64 ULONG_PTR;
#else
typedef unsigned long ULONG_PTR;
#endif
Note that ULONG_PTR is defined in latest basetsd.h, the one that ships with like VS 2005.
-
Re: VC++ with AS/400