If you are using hive registry, you could also suspend/resume which would
flush the registry.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"Bradley Remedios" <***@gmail.com> wrote in message news:2b0f81f5-8691-428c-bc09-***@37g2000yqp.googlegroups.com...
On Jul 2, 10:35 am, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
If it goes back, then you have not saved the registry. It should be clear
that, if you have no persistent data, nothing will be 'stored' for later.
If the registry is never persistent on the device, then you have to fix
that. The *right* way to set it is by having the registry persist. Yes,
you can change it from code, BY CHANGING THE REGISTRY, and telling the
adapter to rebind with the new registry settings, but that's silly. I've
previously posted exactly what you need to do to change it via code. You
should be able to search microsoft.public.windowsce.* in GoogleGroups
advanced groups search and find that/those posts...
I agree with Paul that your problem is most likely due to your
settings not persisting properly in the registry.
You need to have a persistent registry in your device (lookup up hive-
based registry) for it to keep the settings.
If you already have a hive-based registry make sure that you don't
reboot it before the new settings are written to your flash device.
You either need to manually flush the registry to disk or ensure that
your configuration is such that CE will automatically flush the
registry to disk for you.
Regards,
Brad.
Hi Chris,
Thanks for the reply. I realize you can set it in the manner you have
described. It does go back to its original state after a reboot and the
static ip is not retained. The customer would like to have the setting
retained so they don't have to do this every time the device is rebooted.
The fact that it can be change on the fly tells me I could have them put the
ip in a text file and I could write program that reads the text file and set
it using a program. Can you point me in the right direction where I can
find
some documentation to inport a dll or something and set it using function
calls?
--
Don