Re: GetWindowTextW with Pointers

Morten Andersen <[email protected]> Thu, 25 Aug 2005 17:43:16 +0200
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Sven,

Sven Rega wrote:

> Hy,
>
> i've not understand, how to use jawin with pointers.
> The GetWindowText(Win32 API) funktion needs at "LPTSTR lpString" a pointer
> to string buffer (returns the name of the window in this string).I've tried
> some possiblities with no solution. Always getting a Exception.
> I'm not clear enough about the syntax of the instruction string, too.

There is actually a thread on the sourceforge help forum that discusses
exactly the GetWindowTextW:

http://sourceforge.net/forum/forum.php?thread_id=1311741&forum_id=225268

I think this covers your exact problem. (yes, I now it is a mess that
some questions are posted/answered on the mailing list, and other in the
sourceforge forums - so it is understandable that you didn't find that
discussion).

Best Regards
Morten