ntstatus.inc lines 17191 and 17264, WebBrowser duplicate equate

Started by Mike Doty, November 08, 2011, 02:23:25 AM

Previous topic - Next topic

Mike Doty

I am getting an error Requires Procedure (Function/Method)
Line 17191: http://go.microsoft.com/fwlink/?LinkID=92362

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Mike Doty


Rolf Brandt

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
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Mike Doty


Rolf Brandt

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
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Mike Doty

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.


Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

José Roca

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.


José Roca

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.

Mike Doty

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

Rolf Brandt

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

José Roca

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.

David Kenny

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