Documentation of HRESULT

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
6 posts • Page 1 of 1
User avatar
Joris
Posts: 5
Joined: Mon Mar 07, 2011 10:08 pm

Documentation of HRESULT

Post by Joris »

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?

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Documentation of HRESULT

Post by leoknipp »

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

User avatar
Joris
Posts: 5
Joined: Mon Mar 07, 2011 10:08 pm

Re: Documentation of HRESULT

Post by Joris »

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.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Documentation of HRESULT

Post by leoknipp »

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

User avatar
fmulder
Posts: 330
Joined: Wed Feb 03, 2010 9:46 am

Re: Documentation of HRESULT

Post by fmulder »

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

User avatar
Joris
Posts: 5
Joined: Mon Mar 07, 2011 10:08 pm

Re: Documentation of HRESULT

Post by Joris »

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.

Post Reply
6 posts • Page 1 of 1