This should be a simple issue. This is in VB6.
The declare statement is asserting an error when I try to compile with this message:
The declare statements are:Code:Compile Error: Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules
The only constant is on the next line. I'm a C/C++ programmer shoved into this program trying to meet a deadline. I'm bewildered about why this is causing the error.Code:Declare Function SetWindowWord Lib "User" (ByVal hwnd As Integer, ByVal Index As Integer, ByVal wNewWord As Integer) As Integer Const GWW_HWNDPARENT = (-8) Dim OriginalParenthWnd As Integer
I've tried to comment out the other globals declared, but it still generates the same error message.
Bill




Reply With Quote