Re: Win32lib setText

new topic     » goto parent     » topic index » view thread      » older message » newer message

>From: "Derek Parnell" <ddparnell at bigpond.com>

>> ----- Original Message ----- 
>> From: "H.W Overman" <euman at bellsouth.net>

> > Hey all,
> >
> > Using Win32lib v.59.1 I seem to have an issue with setText to SLE Edit
> > controls.
> > If I specifically send a string sequence e.g; setText(Diag[i],"work")
> > this seems fine but, if I return a string sequence from a buffer it
doesnt
> > work correctly.
> >
> > Has anyone else ran across this?
>
> <soapbox>Please be a LOT more explicit when asking for help. This request
is *way* to vague for anyone to guess correctly what your problem
is.</soapbox>
>

There must be more than one way to retrieve a string from a buffer, I know
of only one way...
sorry for not being specific.

> Its not much use just saying "it doesnt work correctly" because that does
not give us any information to help you.

No (0) string is inserted into the SLE.

>For example, is it displaying nothing or displaying strange characters?

No (0) string is inserted into the SLE. (nothing displayed)

>And what does "return a string sequence from a buffer" actually mean?
>I guess you are using an API functon which is returning a zero-terminated
string at a RAM location and you are getting that string out of RAM and
converting it to >a sequence then using setText().

Your a very good guess Derek,
I need to know how to convert the z-string to a sequence suitable for use
with setText

>Can you see what is in the sequence-string before calling setTExt() using
the trace or even the '?' method? What is the contents?
>Are you sure you are fetching the string correctly from RAM? What is the
API routine you are using?
>Is it just this API routine or all API routines that return a RAM string?
>Can you display the sequence string in a console window?

YES! The string /s do show up in a console window, this makes me think there
may be something wrong with setText or,
Im not sure how I need to convert the z-string to acceptable sequence
suitable for use with setText

> -- 
> Derek

Euman

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu