On Wed, Oct 28, 2009 at 9:12 AM, johnmatthews2000 <[email protected]> wrote:
> --- In [email protected], "totallyfreeenergy" <totallyfreeene...@...> 
> wrote:
>>
>> I am trying to write a RightTrim to strip the substring.
>> So far the dll builds ok. But when I run it, crashes when it
>> tries to access the substring after it has been passed into
>> the RightTrim.
>
> I can't see that in the code - sorry if I've missed it, but please can you 
> post the code that is crashing?
>
> Have you tried stepping through the code with the debugger?
>
> BTW I'm not a C++ programmer :-(

Doesn't matter in this case, since the OP is using C-style strings
(with Win32 API, it looks like, as LPSTR is being used, which is a
typedef'd char *).

We definitely need to see the snippet of code that is crashing, it
sounds like you aren't dereferencing your pointers correctly. Just
paste the code into the body of the message (don't attach).

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to