How do you call a user-specific Help in a WinCC project?
In WinCC you can use an API call to call a user-specific Help. With "fuCommand" you can branch to a specific topic. For this you create a new project function with the code below:
BOOL WinHelpA(hwnd, lpszHelpFile, fuCommand, dwData);
#define HELP_CONTENTS 0x0003L
HWND hwnd; /* handle of window requesting help */
UINT fuCommand; /* type of help */
DWORD dwData; /* additional data */
lpszHelp = HelpFile;
hwnd = FindWindow("PDLRTisAliveAndWaitsForYou","WinCC-Runtime - ");
fuCommand = HELP_CONTENTS;
dwData = 0L;
bRetVal=WinHelpA((DWORD) hwnd,(DWORD) lpszHelp, fuCommand, dwData);
printf("hwnd: %d \r\n",hwnd);
printf("HelpFile: %s \r\n",HelpFile);
printf("bRetVal: %d \r\n",bRetVal);
In this example the "Help for Windows Pocket Computers" is opened. If you want to open a different Help file, replace the "HelpFile" string with the path of a different file. If the return value "bRetVal" is equal to 0, an error has occurred. You can now call this project function, for example, by clicking a button.
Here, we are talking about calling a Windows function. Detailed descriptions are given for instance in the documentation for Visual C++. This example is solely to demonstrate how to incorporate the call in WinCC.
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry