Article View: comp.windows.ms.programmer
Article #3065Re: Problem with the WSPrintF function
From: Barry Press
Date: Wed, 05 Jun 1991 20:22
Date: Wed, 05 Jun 1991 20:22
15 lines
1322 bytes
1322 bytes
In article <DSAMPSON.91Jun5152408@x102a.harris-atd.com> dsampson@x102a.harris-atd.com (sampson david 58163) writes: >In article <91156.084930F0O@psuvm.psu.edu> F0O@psuvm.psu.edu writes: > This of course works fine, but I modified the code in the following > way so I could print some text instead of a number: > > WVSPrintF(S, '%s', TextString); Although I can't speak from detailed TPW experience, I can tell you that what you did would likely fail in C because wsprintf and wvsprintf require pointers to strings to be cast to FAR pointers. Passing in a near pointer (which the compiler can't check due to the variable number of args) is a sure-fire UAE. -- Barry Press Internet: press@venice.sedd.trw.com
Technical Details
Message-ID:
<1122@venice.SEDD.TRW.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!trwind!venice!pressReferences:
<91156.084930F0O@psuvm.psu.edu> <DSAMPSON.91Jun5152408@x102a.harris-atd.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!trwind!venice!press From: press@venice.SEDD.TRW.COM (Barry Press) Newsgroups: comp.windows.ms.programmer Subject: Re: Problem with the WSPrintF function Message-ID: <1122@venice.SEDD.TRW.COM> Date: 5 Jun 91 20:22:43 GMT References: <91156.084930F0O@psuvm.psu.edu> <DSAMPSON.91Jun5152408@x102a.harris-atd.com> Reply-To: press@venice.sedd.trw.com (Barry Press) Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA Lines: 15