I'm using this Function in my program

Declare Function SetParent Lib "user32" (byval hWndChild as Long, byval hWndNewParent as Long) as Long



This is how it is called.

r% = SetParent(MCOption1(Index).hwnd, MCPanel
(Index).hwnd)



But, when I run the program in NT, I get an Overflow!(error 6) on any screen that has an MCOption control.

Any ideas on why it would work fine in Win 95/98, but not NT?