What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Visual Basic Code Help

Visual Basic Code Help
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Visual Basic Code Help
Since GetWindowTextLength has something to do with Strings, it may have two versions (GetWindowTextLengthA and GetWindowTextLengthW) in User32. In fact, it does. This is what VB's API Viewer gives me:

code:
Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long


Try it and report if it doesn't work :)

By the way, you also need to add "Alias GetWindowTextA" for GetWindowText, otherwise VB will complain about it too.
Another by the way is that you should use Long to store hWnd values in VB (I mean VB6), I guess...8-)

This post was edited on 11-27-2005 at 05:29 AM by Mnjul.
11-27-2005 05:15 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Visual Basic Code Help - by DJeX on 11-27-2005 at 05:05 AM
RE: Visual Basic Code Help - by Mnjul on 11-27-2005 at 05:15 AM
RE: Visual Basic Code Help - by DJeX on 11-27-2005 at 05:38 AM
RE: Visual Basic Code Help - by Mnjul on 11-27-2005 at 05:56 AM
RE: Visual Basic Code Help - by DJeX on 11-27-2005 at 07:15 AM
RE: Visual Basic Code Help - by Mike on 11-27-2005 at 08:07 AM
RE: Visual Basic Code Help - by IKillThings on 11-27-2005 at 08:13 AM
RE: Visual Basic Code Help - by Mike on 11-27-2005 at 08:22 AM
RE: Visual Basic Code Help - by CookieRevised on 11-27-2005 at 10:21 AM
RE: Visual Basic Code Help - by DJeX on 11-27-2005 at 07:41 PM
RE: RE: Visual Basic Code Help - by CookieRevised on 11-27-2005 at 08:29 PM
RE: Visual Basic Code Help - by DJeX on 11-27-2005 at 09:44 PM
RE: Visual Basic Code Help - by CookieRevised on 11-27-2005 at 11:01 PM
RE: Visual Basic Code Help - by DJeX on 11-27-2005 at 11:50 PM
RE: Visual Basic Code Help - by CookieRevised on 11-28-2005 at 12:11 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On