Applies To:
  • CitectSCADA 7.1
  • CitectHMI 7.1
  • Vijeo Citect 7.1


Upon upgrading to SCADA v7.1, a compile error now reports ERROR: Function is obsolete and cannot be used anymore" CONTEXT: WndGetProfile()  


The WndGetProfile() function has been deprecated in v7.1 as this function calls on parameters saved in the WIN.INI file created by the Operating System. Microsoft is slowly phasing this file out of the Operating system and does not recommend storing and retrieving information currently located in this file.

You can still retrieve this information out of the WIN.INI file by using the CiCode function WndGetFileProfile() and pass the fourth arguments as the location of this WIN.INI file. For example:


Alternatively, you can save the appropriate information needed from this WIN.INI file and place this into your Citect.ini file. To retrieve this new saved information you would then simply use the ParameterGet() CiCode functions.