Path: 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> Reply-To: press@venice.sedd.trw.com (Barry Press) Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA Lines: 15 In article 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