Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Programming tips

  • Last UpdatedJul 23, 2024
  • 1 minute read

Follow these programming tips:

  • GRAccessApp m_gr = new GRAccessApp(). m_gr object must be active when you want to use any of GRAccess Objects. This means that it should not go out of scope from your code path.

  • CommandResult and CommandResults are error checking methods like GetLastError in C++ and The Err Object in VB. After each GRAccess object API call, you can check that the API succeeded or not. APIs that deal with multiple objects return CommandResults.

  • If you are using GRAccess from a remote machine, make sure you have run the OSConfigUtility.

  • If needed, modify the import statement in stdafx.h to include (x86) in the file path, as shown in the following example:


    #import "C:\Program Files (x86)\ArchestrA\Framework\Bin\ArchestrA.GRAccess.dll" no_namespace, raw_interfaces_only

  • The import path may vary depending on variables such as the InTouch installation directory. Modify the import statement in stdafx.h to import from the correct library path, as shown in the following example:


    #import "C:\Program Files (x86)\Wonderware\InTouch\AppServerSecurity.dll" no_namespace, raw_interfaces_only

TitleResults for “How to create a CRG?”Also Available in