CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Posts
    19

    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?

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: VC++ with AS/400

    I don't see any bold lines or a compiler error.

  3. #3
    Join Date
    Jul 2005
    Posts
    19

    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.

  4. #4
    Join Date
    Jun 2004
    Location
    India
    Posts
    432

    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!

  5. #5
    Join Date
    Jul 2005
    Posts
    19

    Re: VC++ with AS/400

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured