-
August 30th, 2007, 11:05 AM
#1
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?
-
August 30th, 2007, 11:13 AM
#2
Re: VC++ with AS/400
I don't see any bold lines or a compiler error.
-
August 30th, 2007, 12:07 PM
#3
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.
-
August 30th, 2007, 12:41 PM
#4
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.
Say no to supplying ready made code for homework/work assignments!!
Please rate this post!
-
September 3rd, 2007, 02:58 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|