Author Topic: File association to registry fails?  (Read 26636 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: File association to registry fails?
« Reply #30 on: January 04, 2006, 08:35:12 pm »
some more test results :
1) on my laptop everything works ok
2) on my pc NOT
 a) when I have CB open, and i double click for example on a cpp file -> opens nicely in CB
 b) when no CB open, double click oncpp file -> that F*** error message box

so it seems we have ?sometimes? a problem with DDE if the app is not running yet, and then it probably falls back to the command version which opens the file in CB then ?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: File association to registry fails?
« Reply #31 on: January 04, 2006, 08:53:18 pm »
could not modify my previous post anymore, weird.

Some more info : I changed the command subkey from :

"D:\work\cb_snap\src\devel\codeblocks.exe" "%1"

to :

"D:\work\cb_snap\src\devel\codeblocks.exe" "test.cpp"

So I could check if DDE would fall back on this, it seems NOT, since I still get the error message on the file I double clickd (which wasn't test.cpp ;-)  )

[EDIT] : nope I was wrong, CB started but the clicked file was not opened any more, why because it now wanted to open the test.cpp, which did not exist, so in the end it did fall back on the command subkey.

But just before this fallback we get this error message, i wonder who gives this : DDE/Windows or CB ?

Now the following is also rather unclear, comes from :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fa_verbs.asp

Quote
ifexec. Set the default value of this subkey to the DDE command to be used if DDE conversation cannot be initiated. When initiation fails, the application specified by the default value of the verb's command subkey is launched (SO IS IT THIS ???????). If an ifexec key exists, its default value will then be used as the DDE command. If there is no ifexec subkey, the default value of the ddeexec key is used again as the DDE command(OR IS IT THIS ?????).
« Last Edit: January 04, 2006, 09:01:19 pm by killerbot »

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: File association to registry fails?
« Reply #32 on: January 04, 2006, 09:00:33 pm »
... continueing my search ...
it also depends, if you have the DDE server in CB enabled or not

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: File association to registry fails?
« Reply #33 on: January 04, 2006, 09:03:15 pm »
yes, it is enabled

grv575

  • Guest
Re: File association to registry fails?
« Reply #34 on: January 04, 2006, 11:21:37 pm »
The code is already special cased for windows vs. linux, so why not use the appropriate linux IPC mechanism on linux and windows IPC code on windows?  Whether it be mailboxes, message queues, named pipes, mmap(), etc - this is all very os-specific anyway since they're typicall os & middleware building blocks.  If dde is unreliable....