News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

File association to registry fails?

Started by MortenMacFly, January 03, 2006, 10:25:43 AM

Previous topic - Next topic

killerbot

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 ?

killerbot

#31
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

Quoteifexec. 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 ?????).

tiwag

Quote from: killerbot on January 04, 2006, 08:53:18 PM
... continueing my search ...
it also depends, if you have the DDE server in CB enabled or not

killerbot


grv575

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....