🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1482

Re: Gawd I love this shit. Q about strings in windows

#1482
From: CADSI
Date: Sun, 03 Mar 1991 21:54
19 lines
1706 bytes
From article <1991Mar3.194444.26873@javelin.es.com>, by lwallace@javelin.es.com (Lynn Wallace):
> 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.

	Welcome to the world of SDK!  The strxxx functions in general aren't
what you want.  If you use the SDK's lstrcpy and other such functions, things
will probably work out.  Windows in general wants to mess with far pointers.
depending on your memory model during compilations, strcpy will use far or
near pointers, exclusive or I mean.  This info is really in the dox as you put
it.
Technical Details
Message-ID: <1991Mar3.215408.21076@ccad.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ns-mx!ccad.uiowa.edu!cadsi
References: <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!ns-mx!ccad.uiowa.edu!cadsi
From: cadsi@ccad.uiowa.edu (CADSI)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Gawd I love this shit.  Q about strings in windows
Message-ID: <1991Mar3.215408.21076@ccad.uiowa.edu>
Date: 3 Mar 91 21:54:08 GMT
References: <1991Mar3.194444.26873@javelin.es.com>
Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
Lines: 19