
Wha'ts wrong with this code
In vb 5.0-
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String)
I get a "Bad DLL calling convention error" at the following line:
hwndMT = FindWindow(vbNullString, MsgTitle)
I'm trying to activate a 16-bit application and have tried:
Private Declare Function FindWindow Lib "user" (ByVal lpClassName As Any,
ByVal lpWindowName As Any)
but this gives this same error. Any ideas?
TIA