Page 1 of 1

File association (registry) problem.

PostPosted: Mar 5, 2004 @ 9:25pm
by kornalius
Hi,

I am writing my file association to the registry without any problems. However the changes are not notified to the system. How can this be done? In Win32 we can do:

SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0)

But it doesn't work with eVc.

Regards,
Kornalius

PostPosted: Mar 6, 2004 @ 3:16pm
by Dan East

PostPosted: Mar 7, 2004 @ 7:31pm
by kornalius

PostPosted: Mar 7, 2004 @ 10:52pm
by Dan East

PostPosted: Mar 8, 2004 @ 4:36am
by kornalius

PostPosted: Mar 8, 2004 @ 6:41am
by Dan East

PostPosted: Mar 8, 2004 @ 5:13pm
by kornalius

PostPosted: Mar 8, 2004 @ 7:24pm
by Dan East

PostPosted: Mar 8, 2004 @ 9:49pm
by kornalius

PostPosted: Mar 8, 2004 @ 11:40pm
by Dan East
That binary won't run on my PPC 2000 iPaq 3630.

Dan East

PostPosted: Mar 8, 2004 @ 11:49pm
by Dan East
Here's a bug. All instances of:

wcslen(ws)*sizeof(wchar_t)

should be:

(wcslen(ws)+1)*sizeof(wchar_t)

You need to include the null terminator in the buffer size.

Dan East

PostPosted: Mar 9, 2004 @ 3:18pm
by kornalius

PostPosted: Mar 11, 2004 @ 2:24pm
by kornalius
Sorry for the delay Dan, I was having some other more important problems with the compiler and the interpreter that just showed up when I tried to execute a big .ppl program. I was use to test everything with small program files. :cry: Man what a surprise when I compiled this big text editor program. hehe! :D It's now fine and it allowed me to optimized some parts and to find some bugs in other places.

Anyway, I tested the registry keys with the fix you proposed and it didn't do anything. Of course it's safer this way but still doesn't work. There is got to be another key or something that I am missing. I use Resco File Explorer to assign the file and it works. My keys are all there and Resco File Explorer seem to be creating the same keys only. It is very strange and without this the product is not going to be as nice to use. :cry:

Btw, thank you very much for all your generous help, it is very appreciated. It's not easy to find help on the PPC programming. I can honestly say that PM as allowed me to bring this product to (almost as of now) completion.

Regards,
Kornalius