digitalmars.D.learn - GetWindowText & GetWindowTextLength
- Bauss (4/4) Jan 03 2014 I cannot seem to access those two functions from the Windows API.
- Adam D. Ruppe (17/19) Jan 03 2014 The core.sys.windows module is woefully incomplete. Two options,
- Bauss (1/1) Jan 03 2014 Perfect. Thank you!
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
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