Results 1 to 6 of 6

Thread: Lpstr

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Lpstr

    Hey,

    In order to use LPSTR, what do I have to include?

    I'm getting an undeclared identifier.

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    probably <windows.h>

    or you could do something like...
    Code:
    #ifndef LPSTR
    typedef char* LPSTR;
    #endif
    since a LPSTR is just a char*
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Or simply use char * and screw LPSTR
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    So it is the same thing.
    So what is windows.h good for?
    Don't anthropomorphize computers -- they hate it

  5. #5
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    Originally posted by vbgladiator
    So it is the same thing.
    So what is windows.h good for?
    You can't program Windows API without it

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    windows.h? You don't need it. Go ahead, you can write every single protoype yourself and Windows won't notice.
    However, your fingers will notice
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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