Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

File association to registry fails?

<< < (2/7) > >>

grv575:

--- Quote from: MortenMacFly on January 03, 2006, 10:25:43 am ---
--- Code: ---10:06:05: Can't create registry key 'HKCR\.cbp' (error 5: access denied)
10:06:05: Can't open registry key 'HKCR\.cbp' (error 2: file not found)
10:06:05: Can't set value of 'HKCR\.cbp' (error 2: file not found)

--- End code ---

--- End quote ---

shouldn't that be HKCU?

killerbot:
HKCR : class root
HKCU : current user

It should be CU, well in more modern windowsez, but we have to make sure it also works on win95/98/Me/NT4 

So my simple patch at this moment looks if the
user key exists, if so -> put the stuff there (so that fixes win 200 /xp /2003), and if that one does not exist, put it at class root.
For this to work : the other os's should not have the user key.
It seems Win98 does has it, the BIG question is, if we also store the info at the user key, will it be used by the OS.

It seems the user key was only added in win2000, but it is possible the older os's also have because of upgrades ??

Note : we have not played all our cards yet, so if this simple fix does not work I can explicitly go check on the windows version.

Lieven

grv575:
Well, windows2000 is a merge of win98 features on top of nt.  So it could be that win98 had it first and then it was added to win2000.  I'm pretty sure that it would work if it's present.

killerbot:
We are going to do a test on win98 soon with my patch.
So I will provide a special build for that, there are 2 open questions :

1) who added the DDE stuff to the associations.cpp -> as mentioned in another post, this is "probably" NOT needed, the command entry is sufficient, and this is the cause of the "double click on a cbp file" bug.

2) what is that extra library I need to linkt with so that the svn builds work on Win98 ? And will those ancient windows versions run an unicode build ??

thanks for the info,
Lieven

mandrav:

--- Quote from: killerbot on January 04, 2006, 09:16:45 am ---1) who added the DDE stuff to the associations.cpp -> as mentioned in another post, this is "probably" NOT needed, the command entry is sufficient, and this is the cause of the "double click on a cbp file" bug.

--- End quote ---

I did. DDE is useful when you want to re-use an already existing instance (i.e. not start a new instance of C::B).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version