For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > May 2006 > Lost Examples and Samples









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Lost Examples and Samples
Fozzie

2006-04-28, 4:05 am

I am using VB6 with the MSDN Library Visual Studio 6.0 installed for help.

I have recently moved to a new machine and I seem to have lost the
Examples/Samples and See Also headings at the top of each of the MSDN Library
pages.

The headings/links that were there have been replaced with a grey square
with a dot in the middle. It looks like they are placeholders of some kind
and I suspect a setting somewhere and that it may be incredibly easy to
resolve. (I've tried re-installing the MSDN Library but that hasn't solved
it).

Anyone any ideas

Many thanks.

--
Fozzie
Code Jockey

2006-04-28, 7:05 pm

If I understand the problem correctly, then the following should be what you
need.

Find the registry key:

HKLM \ Software \ Microsoft \ HTML Help Collections

Under the sub-key 0x0409 (for English), you will find a subkey "0x########".

Create a new subkey with a new "0x########" that is like the other(s),
pointing "Filename" to the .COL file of the help you want available.


"Fozzie" <johnfoster@computertechnologyservices.co.uk.(donotspam)> wrote in
message news:0AAFC4F4-882D-4387-969F-E7CBFD5BC60F@microsoft.com...
> I am using VB6 with the MSDN Library Visual Studio 6.0 installed for help.
>
> I have recently moved to a new machine and I seem to have lost the
> Examples/Samples and See Also headings at the top of each of the MSDN

Library
> pages.
>
> The headings/links that were there have been replaced with a grey square
> with a dot in the middle. It looks like they are placeholders of some kind
> and I suspect a setting somewhere and that it may be incredibly easy to
> resolve. (I've tried re-installing the MSDN Library but that hasn't solved
> it).
>
> Anyone any ideas
>
> Many thanks.
>
> --
> Fozzie



Fozzie

2006-04-30, 4:03 am

Many thanks for your reply, code jockey.

I have tried your suggestion with no success. But bear in mind I am no
expert on the registry so I am not sure that I've done what you expected.

The current settings under the subkey 0x0409 (for English) are :-

subkey "0x035903370"

Name Type
(Default) REG_SZ MSDNLibrary-Visual Studio 6.0a

Filename REG_SZ C:\Program Files\Microsoft Visual
Studio\MSDN98\1033_
\msdnvs6a.col

Full REG_DWORD 0x00000001(1)

The MSDN Library seems to work perfectly and the relevant pages display on
the screen correctly with the exception of the links to Examples etc. which
used to say Examples etc. and now just show a small square with a dot in the
middle as if they are placeholders.

I tried adding a new subkey as you suggested but nothing changed :-

Did you mean that I should end up with two subkey under 0x0409, the old one
and a new one or that I should replace the old subkey with the new one.

Also, how should the new subkey be numbered i.e. the 0x######## in your
posting. The original subkey is 0x035903370. With your suggested new subkey,
should it be numbered the same or differently and if so with what number.

Sorry if I'm being dense, but as I said earlier I am no expert in the
registry.

Many thanks once again.

Regards

Fozzie

--
Fozzie


"Code Jockey" wrote:

> If I understand the problem correctly, then the following should be what you
> need.
>
> Find the registry key:
>
> HKLM \ Software \ Microsoft \ HTML Help Collections
>
> Under the sub-key 0x0409 (for English), you will find a subkey "0x########".
>
> Create a new subkey with a new "0x########" that is like the other(s),
> pointing "Filename" to the .COL file of the help you want available.
>
>
> "Fozzie" <johnfoster@computertechnologyservices.co.uk.(donotspam)> wrote in
> message news:0AAFC4F4-882D-4387-969F-E7CBFD5BC60F@microsoft.com...
> Library
>
>
>

Code Jockey

2006-05-01, 7:05 pm

My apologies for being less than clear...

There should be two keys under 0x0409.

The key 0x035903370 is just an encoded form of the date at which the
collection was added. So, so you should add a new key, such as 0x03600000,
and then in that key, you should have an REG_SZ value "Filename" pointing to
the .COL, and a REG_DWORD value "Full" set to 0x00000001.

But, after additional consideration, I am less sure that this is causing the
problem of "missing examples and samples". The suggestion to add additional
..COL files to the list of available help-collections implies that there is
such a .COL that contains the examples and samples, and it is not listed in
the collections.

So, I looked at the .COL on my system, "E:\Program Files\Microsoft
Office\ODETools\V9\MSDN\DNMOD\1033\MSDNO
D9.COL", and it turns out to be an
XML file. Within it, via notepad, I see:

<Folder>
<TitleString value="Code Samples"/>
<FolderOrder value=11/>
<Folder>
<TitleString value="=code0x01"/>
<FolderOrder value=1/>
<LangId value=1033/>
</Folder>
... repeats with TitleString value="=code0x02" up to "=code=0x0A" and
"FolderOrder value=2/" up to "=10/".
</Folder>

Then, I see that there are .CHI and .CHM files with the names CODE0x01 up to
CODE0x0A, in the directory specified by "FileName".

So, now my suggestion is to examine your .COL file to see if it contains
"Code Samples" or something similar, and, if so, to verify that the
referenced "CODE0x.." files are present. Hopefully, the files are simply
missing and need merely be located and copied to the folder pointed to by
the existing registry-key "FileName" value.


"Fozzie" <johnfoster@computertechnologyservices.co.uk.(donotspam)> wrote in
message news:51FA08F5-7A5A-4CF3-8E6C-F39CCF30CA34@microsoft.com...
> Many thanks for your reply, code jockey.
>
> I have tried your suggestion with no success. But bear in mind I am no
> expert on the registry so I am not sure that I've done what you expected.
>
> The current settings under the subkey 0x0409 (for English) are :-
>
> subkey "0x035903370"
>
> Name Type
> (Default) REG_SZ MSDNLibrary-Visual Studio 6.0a
>
> Filename REG_SZ C:\Program Files\Microsoft Visual
> Studio\MSDN98\1033_
> \msdnvs6a.col
>
> Full REG_DWORD 0x00000001(1)
>
> The MSDN Library seems to work perfectly and the relevant pages display on
> the screen correctly with the exception of the links to Examples etc.

which
> used to say Examples etc. and now just show a small square with a dot in

the
> middle as if they are placeholders.
>
> I tried adding a new subkey as you suggested but nothing changed :-
>
> Did you mean that I should end up with two subkey under 0x0409, the old

one
> and a new one or that I should replace the old subkey with the new one.
>
> Also, how should the new subkey be numbered i.e. the 0x######## in your
> posting. The original subkey is 0x035903370. With your suggested new

subkey,[color=darkred]
> should it be numbered the same or differently and if so with what number.
>
> Sorry if I'm being dense, but as I said earlier I am no expert in the
> registry.
>
> Many thanks once again.
>
> Regards
>
> Fozzie
>
> --
> Fozzie
>
>
> "Code Jockey" wrote:
>
you[color=darkred]
"0x########".[color=darkred]
in[color=darkred]
help.[color=darkred]
square[color=darkred]
kind[color=darkred]
to[color=darkred]
solved[color=darkred]


Fozzie

2006-05-31, 4:09 am

Many thanks, Code Jockey. Sorry for not replying sooner but I've been away.
Your suggestions seem tto have solved the problem.
--
Fozzie


"Code Jockey" wrote:

> My apologies for being less than clear...
>
> There should be two keys under 0x0409.
>
> The key 0x035903370 is just an encoded form of the date at which the
> collection was added. So, so you should add a new key, such as 0x03600000,
> and then in that key, you should have an REG_SZ value "Filename" pointing to
> the .COL, and a REG_DWORD value "Full" set to 0x00000001.
>
> But, after additional consideration, I am less sure that this is causing the
> problem of "missing examples and samples". The suggestion to add additional
> ..COL files to the list of available help-collections implies that there is
> such a .COL that contains the examples and samples, and it is not listed in
> the collections.
>
> So, I looked at the .COL on my system, "E:\Program Files\Microsoft
> Office\ODETools\V9\MSDN\DNMOD\1033\MSDNO
D9.COL", and it turns out to be an
> XML file. Within it, via notepad, I see:
>
> <Folder>
> <TitleString value="Code Samples"/>
> <FolderOrder value=11/>
> <Folder>
> <TitleString value="=code0x01"/>
> <FolderOrder value=1/>
> <LangId value=1033/>
> </Folder>
> ... repeats with TitleString value="=code0x02" up to "=code=0x0A" and
> "FolderOrder value=2/" up to "=10/".
> </Folder>
>
> Then, I see that there are .CHI and .CHM files with the names CODE0x01 up to
> CODE0x0A, in the directory specified by "FileName".
>
> So, now my suggestion is to examine your .COL file to see if it contains
> "Code Samples" or something similar, and, if so, to verify that the
> referenced "CODE0x.." files are present. Hopefully, the files are simply
> missing and need merely be located and copied to the folder pointed to by
> the existing registry-key "FileName" value.
>
>
> "Fozzie" <johnfoster@computertechnologyservices.co.uk.(donotspam)> wrote in
> message news:51FA08F5-7A5A-4CF3-8E6C-F39CCF30CA34@microsoft.com...
> which
> the
> one
> subkey,
> you
> "0x########".
> in
> help.
> square
> kind
> to
> solved
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com