www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - GetWindowText & GetWindowTextLength

reply "Bauss" <streetzproductionz hotmail.com> writes:
I cannot seem to access those two functions from the Windows API.

They doesn't seem to be in the core.sys.windows.windows module 
either.

So I'm kinda lost as for what to do.
Jan 03 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Saturday, 4 January 2014 at 02:44:55 UTC, Bauss wrote:
 I cannot seem to access those two functions from the Windows 
 API.
The core.sys.windows module is woefully incomplete. Two options, either grab the better bindings here: http://www.dsource.org/projects/bindings/browser/trunk/win32 Or define the functions yourself, paste this into your module: extern(Windows) int GetWindowTextLengthW( HWND hWnd ); extern(Windows) int GetWindowTextW( HWND hWnd, wchar* lpString, int nMaxCount ); then call them normally. Or use the A versions instead of W if you want to work with ascii char* instead of unicode.
Jan 03 2014
parent "Bauss" <streetzproductionz hotmail.com> writes:
Perfect. Thank you!
Jan 03 2014