This site is no longer active and is available for archival purposes only. Registration and login is disabled.

File association (registry) problem.


File association (registry) problem.

Postby kornalius » Mar 5, 2004 @ 9:25pm

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
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dan East » Mar 6, 2004 @ 3:16pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby kornalius » Mar 7, 2004 @ 7:31pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dan East » Mar 7, 2004 @ 10:52pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby kornalius » Mar 8, 2004 @ 4:36am

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dan East » Mar 8, 2004 @ 6:41am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby kornalius » Mar 8, 2004 @ 5:13pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dan East » Mar 8, 2004 @ 7:24pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby kornalius » Mar 8, 2004 @ 9:49pm

Attachments
regtest.zip
Simple registry test for ppc application.
(1.38 KiB) Downloaded 208 times
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Dan East » Mar 8, 2004 @ 11:40pm

That binary won't run on my PPC 2000 iPaq 3630.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Mar 8, 2004 @ 11:49pm

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby kornalius » Mar 9, 2004 @ 3:18pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Mar 11, 2004 @ 2:24pm

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
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron