Results 1 to 7 of 7

Thread: [RESOLVED] FindWindow api problem

Threaded View

  1. #6
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: FindWindow api problem

    Code:
    GetClassName hWndChild, strClass, 250
    will almost certainly give you a problem as strClass is not defined and not initialised. You should define it and initialise it in a similar fashion to strBuffer (e.g. set it to 250 spaces) before calling the API.

    I strongly recommend you put 'Option Explicit' as the first line of all your Forms and Modules; using that statement will cause the Compiler to warn you if any variables have not been defined and you could potentially avoid problems like this.
    Last edited by Doogle; Dec 4th, 2012 at 02:19 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width