Hi Luis;
1) Before any migration ... I would suggest using the PB 10.5 "Migration Assistant" utility to scan your PB 5 code. There might be issues in your PB 5 application that may need to be fixed first before you migrate.
2) The PFC changed considerably in PB 6, 6.5 and then started to settle down in PB 7/8. You may have to have a hard look at the differences when you migrate.
3) If you have inherted from the PFC layered objects instead of the PFE layer in PB 5 - you will need to fix this issue before you migrate.
4) In PB v10 - the software became Unicode. The original PFC and possibly your applciation may be ANSI sensitive in tis use of data and commands. You may need to visit this area as you move to PB 10.5
5) Make sure that you only used the PB 10/10.5 PFC version once #1 and #2 are addressed and you have a clean compile.
6) Make sure you address any compiler warnings in PB 5 as well before migration.
Good luck!
HTH
Regards ... Chris