× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The easiest way to eliminate the pointer logic would be to call QCMDEXC with a prototype, and use the CONST keyword.

But, I'm guessing the underlying problem was that the programmer thought he couldn't call programs with prototypes. That's not unusual -- many people go through a phase where they think that prototypes are only for subprocedures.

(There's also a crowd that thinks there's a distinction between calling a "bound module" and calling a subprocedure... believe it or not, there are people who don't realize these are the same thing.)

Most will eventually learn ... but, of course, we all leave behind code that was written during the time when we didn't know something, and so did it an alternate way.

On 6/20/2012 8:11 AM, Vern Hamberg wrote:
Another thought - the use of a pointer to get the data part of a
varying-length variable. That shouldn't be necessary, IMO.

I don't know all the circumstances when using varying-length variables
with APIs. Seems to me that sometimes you can just pass them, and the
data received by the API does not include the length bytes. Other times
those bytes are included.

Maybe someone can clarify this. I've run into both in my own code, just
don't remember the details.

Thanks
Vern


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.