Article View: comp.windows.ms.programmer
Article #1519Re: Gawd I love this shit. Q about strings in windows
From: Russ Poffenberger
Date: Wed, 06 Mar 1991 00:42
Date: Wed, 06 Mar 1991 00:42
22 lines
1865 bytes
1865 bytes
In article <1991Mar3.194444.26873@javelin.es.com> lwallace@javelin.es.com (Lynn Wallace) writes:
>I've found that many of the string functions~ don't work in Windows,
>particularly strcpy. I haven't been able to find any discussion of string
>manipulation in the dox, particularly the Guide to Programming. Can anyone
>point me to a good discussion of it, or possibly point out some caveats?
>
>Ya know, what I'm trying to write is really not that complicated. But whenever
>I try something new (meaning something I simply haven't tried under Windows
>but have done many times in other environments) it takes several days to figure
>out some silly little extra thing I've got to do to make it work. Assuming
>I'm successful at all and don't end up kludging a way around it. This is the
>first and last application I will try to write using just the SDK.
There are windows specific versions of most of those types of functions.
Windows deals with LPSTR data types (FAR pointer strings) and you need to use
the functions provided for that purpose. If I remember right, they are pretty
much prepended with an l (lstrcpy, etc.)
Russ Poffenberger DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies UUCP: {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive CIS: 72401,276
San Jose, Ca. 95110 (408)437-5254
Technical Details
Message-ID:
<1991Mar6.004213.2305@sj.ate.slb.com>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sjsca4!poffenReferences:
<1991Mar3.194444.26873@javelin.es.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sjsca4!poffen From: poffen@sj.ate.slb.com (Russ Poffenberger) Newsgroups: comp.windows.ms.programmer Subject: Re: Gawd I love this shit. Q about strings in windows Message-ID: <1991Mar6.004213.2305@sj.ate.slb.com> Date: 6 Mar 91 00:42:13 GMT References: <1991Mar3.194444.26873@javelin.es.com> Reply-To: poffen@SunOS (Russ Poffenberger) Organization: Schlumberger Technologies, ATE division, San Jose, Ca. Lines: 22