PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Mike Doty on November 08, 2011, 02:23:25 AM

Title: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: Mike Doty on November 08, 2011, 02:23:25 AM
I am getting an error Requires Procedure (Function/Method)
Line 17191: http://go.microsoft.com/fwlink/?LinkID=92362
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Rolf Brandt on November 08, 2011, 02:56:26 AM
Which demo ist that?
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Mike Doty on November 08, 2011, 06:42:46 AM
Resize, Calendar, Address and then gave up.
Error 484 in ntstatus.inc
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Rolf Brandt on November 08, 2011, 06:54:05 AM
They all compile and run fine here.

Do you have the latest version of Josè Roca's include files? ntstatus.inc is one of Josè's files.

Rolf
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Mike Doty on November 08, 2011, 06:55:59 AM
Yes.  Version 2.05  11/3/2011
http://www.jose.it-berater.org/smfforum/index.php?topic=4425.0
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Rolf Brandt on November 08, 2011, 07:09:23 AM
Strange. I would check anyway if they are the right files. My version of ntstatus.inc is dated Aug 19th 2011 23:00:00, and it's size is 453 KB (463.873 Bytes).

You might also want to check if the path to Josè's files is properly set. (see screenshot).

Other than that I cannot imagine what's going wrong. Maybe Josè or Paul have an idea.

Rolf
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Rolf Brandt on November 08, 2011, 07:11:05 AM
OK, I'll try those.
Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Mike Doty on November 08, 2011, 07:22:45 AM
Line continuations do not prevent lines with remarks at the beginning to remark the next line.
This occurs on lines 17191 and 17264.
Remarked those lines in ntstatus.inc and it now works.

I loaded ntstatus.inc into the PB 10 editor to see the line numbers.
Thank you for looking into it.

Title: Re: Unable to compile demos (line 17191 requires function/method)
Post by: Rolf Brandt on November 08, 2011, 07:25:06 AM
Great that it works! Have a nice day.

Rolf
Title: Re: Remark needed in ntstatus.inc lines 17191 and 17264 (version 2.05 of headers)
Post by: José Roca on November 08, 2011, 10:41:29 AM
Quote from: Mike Doty on November 08, 2011, 07:22:45 AM
Line continuations do not prevent lines with remarks at the beginning to remark the next line.
This occurs on lines 17191 and 17264.
Remarked those lines in ntstatus.inc and it now works.

I loaded ntstatus.inc into the PB 10 editor to see the line numbers.
Thank you for looking into it.



There are not line continuations in these lines in the original file. The problem is that there are two comment lines that sligthly exceed the limit of 255 characters of the PB editor, and it tries to "fix" it breaking these lines with line continuations. As my editor allows lines to exceed that limit and the compiler does not care about comment lines, I did not notice it, because it compiles fine. I will break these lines. Thanks for reporting it.

Title: Re: Remark needed in ntstatus.inc lines 17191 and 17264 (version 2.05 of headers)
Post by: José Roca on November 08, 2011, 11:00:11 AM
BTW when breaking the lines, the PB editor should check if it is a comment line or not, adding a "'" to the breaked line instead of blindingly breaking it and adding a line continuation.
Title: WebBrowser error 468 duplicate equate
Post by: Mike Doty on November 08, 2011, 04:20:19 PM
WebBrowser example error 468
This equate many not be redefined (line 10 and line 48)
$PROGID_WebBrowser_V1 = "Shell.Explorer.1"  'CODEGEN_WEBROWSER_DECLARES.INC
$PROGID_WebBrowser_V1 = "Shell.Explorer"    'EXEDISP.INC
Title: Re: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: Rolf Brandt on November 08, 2011, 04:53:34 PM
The solutions is here:

http://www.planetsquires.com/protect/forum/index.php?topic=2945.msg21833#msg21833

Rolf
Title: Re: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: José Roca on November 08, 2011, 04:58:52 PM
No, it's not, even if it works. The solution is to remove modWebBrowserInterfaces.inc, that it's not needed, from the modules in the Explorer treeview.
Title: Re: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: David Kenny on November 08, 2011, 11:32:11 PM
My fault on the misinformation, I should have actually loaded the example project and investigated the proper way.  I have since gained a great deal of trust with Jose's includes and will not as easily jump to conclusions about them in the future.  I didn't know the modWebBrowserInterfaces.inc was included in the project the way it was and assumed (incorrectly I might add) that the problem was in Jose's distribution.  My apologies to Jose as he has put much time and effort into making his includes as accurate and complete as possible. 

David
Title: Re: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: José Roca on November 09, 2011, 12:21:11 AM
No apologies needed, David. The headers are HUGE. Paul wrote that example when FF had the option to use the PB include files, and at that time the module was needed because the PB includes have not these interface declarations (in fact, they don't contain any interfaces). FF 3.5 uses only my headers, and keeping that outdated module is not only unneeded, but causes conflicts. It is highly advisable to use #INCLUDE when needed, instead of adding modules, because when the headers are updated, the modules became outdated.
Title: Re: ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate
Post by: Rolf Brandt on November 09, 2011, 04:07:48 AM
Thanks for that info, Josè!

Rolf