Ron Blancarte wrote On 06/07/07 14:39,:
> [...]
> What problem that I am having is that it seems my functions which
> worked with:
>
> unsigned char inputBuffer[100];
> unsigned char outputBuffer[100];
>
> don't appear to be working with:
>
> unsigned char inputBuffer[100];
> unsigned char *inputBuffer = outputBuffer + 100;
Of course this won't "work:" It won't even compile.
And if the first `inputBuffer' is really `outputBuffer',
then the buffer isn't big enough. We can sit here all
day trying to guess how to change what you've shown to
get to what your code is actually like, but in the end
that just means we're debugging our guesses and not
debugging your code.
If you feel ill, do you send your doctor a crayon
drawing of your body with an arrow saying "This is where
it hurts?"
If your car won't start, do you call the garage and
tell the mechanic "It's a sort of off-blue color, more
toward aqua. What's wrong with it?"
I'm not asking for you to post all umpty-bazillion
lines of your code (and I wouldn't read it if you did).
Whittle the code down to the smallest complete and
compilable program that demonstrates the problem, and
post that exact code: No paraphrases, no abbreviations,
no fill-in-the-blanks, but something another person can
run through his compiler unmodified. That way, we'll
be debugging your code instead of debugging a sort of
cloud of more and less likely possibilities centered
around your code.
Oh, and one more thing: "input is not working" is
not a sufficiently precise description of your problem.
In what way is it "not working?" What actually happens,
and how does that differ from what you hoped would happen?
Some people on this group seem to be able to read minds
on occasion, but it's not a reliable talent.
People *will* try to help you, but you've got to
cooperate more actively.
--