Hi Jose,
Over in the FB forum, Lothar Schirm mentioned about compiling with the compiler switches -2 pedantic. I did so and noticed that there are several areas in the CWindow and associated classes where BYVAL and/or BYREF are not explicitly specified. Probably wouldn't hurt for you to add them?
Thanks, Paul. I already have done it. I will post a new version tomorrow.