Does anyone know where I can find the definitaion of HRESULT?
I am unable to find it in the help in WinCC OA 3.9.
Or should I use the HRESULT defined by MS?
Documentation of HRESULT
Search
Re: Documentation of HRESULT
Hello,
the definition of HRESULT is made by the function you are calling.
Can you please describe in detail what you want to do and how this question is related to PVSS/WinCC OA.
Best Regards
Leopold Knipp
Senior Support Specialist
the definition of HRESULT is made by the function you are calling.
Can you please describe in detail what you want to do and how this question is related to PVSS/WinCC OA.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Documentation of HRESULT
Various functions from WinCC OA return HRESULT
A complete overview of functions returning HRESULT can be found in help -> Search -> search:
E.g. dpConnect is documented as
HRESULT dpConnect([in] VAROAMT vIdent, [in] VARIANT vDpName, [in, default........
But there is no information about HRESULT.
A complete overview of functions returning HRESULT can be found in help -> Search -> search:
E.g. dpConnect is documented as
HRESULT dpConnect([in] VAROAMT vIdent, [in] VARIANT vDpName, [in, default........
But there is no information about HRESULT.
Re: Documentation of HRESULT
Hello,
the functions you are talking about are the functions for the COM-manager-object.
Are you using the COM-manager-object or are you using the normal CTRL-functions?
The documentation for the CTRL-functions can be found at the online-help at the chapter CONTROL.
Best Regards
Leopold Knipp
Senior Support Specialist
the functions you are talking about are the functions for the COM-manager-object.
Are you using the COM-manager-object or are you using the normal CTRL-functions?
The documentation for the CTRL-functions can be found at the online-help at the chapter CONTROL.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Documentation of HRESULT
Visual Studio 6 had a menu item called 'Error Lookup'. You could type the HRESULT value and it would shown the readable text. Sometimes this is usefull, but sometimes it would just say 'General error'.
The following link will show where to get the tool.
http://www.codeguru.com/cpp/v-s/devstud ... .php/c9263
Good luck
Frenk Mulder
The following link will show where to get the tool.
http://www.codeguru.com/cpp/v-s/devstud ... .php/c9263
Good luck
Frenk Mulder
Re: Documentation of HRESULT
I was a long time unavailable due holiday, courses. Sorry for the late response.
Now I see how this help is build up.
When you search for dpConnect you get in the CTR-function or in a Special Functions wich return an (undocumented) int. Where the error is handled by the GetLastError(). Just look carefully at the yellow bar in the top. And the last thing was something I didn't do.
The special function is COM and therefore for Windows and uses a Windows error. Makes sense.
Now I see how this help is build up.
When you search for dpConnect you get in the CTR-function or in a Special Functions wich return an (undocumented) int. Where the error is handled by the GetLastError(). Just look carefully at the yellow bar in the top. And the last thing was something I didn't do.
The special function is COM and therefore for Windows and uses a Windows error. Makes sense.