Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing functionality in WinCE ( GetPrivateProfileString )

0 views
Skip to first unread message

Awais Zaka

unread,
Apr 2, 2002, 10:44:50 AM4/2/02
to
I'm trying to work around missing functionality in WinCE3.0. The functions
in question are GetPrivateProfileString/Int , WritePrivateProfileString/Int.
The reason i need them is to be able to write my own initialisation file.
Also missing are _findfirst, _splitpath, _makepath and io.h which contains
the structure _finddata_t. Any ideas other than rewriting my own functions ?
regards,
Awais Zaka.


Marc Zimmermann [Microsoft MVP - Mobile Devices]

unread,
Apr 3, 2002, 12:48:23 AM4/3/02
to
>I'm trying to work around missing functionality in WinCE3.0. The
>functions in question are GetPrivateProfileString/Int ,
>WritePrivateProfileString/Int. The reason i need them is to be
>able to write my own initialisation file.

Ever since Windows NT 3.1, the Win32 API intended to use the registry
for storing application settings. The documentation says: "These
functions are provided only for compatibility with 16-bit versions of
Windows. New applications should use the registry."

In the streamlined version of Win32 on Windows CE, the
backwards-compatible INI file API was intentionally omitted.

Use the Reg... functions (RegOpenKeyEx, RegSetValueEx,
RegQueryValueEx...) instead.

>Also missing are _findfirst, _splitpath, _makepath and io.h which
>contains the structure _finddata_t. Any ideas other than rewriting
>my own functions ?

Use the Win32 functions FindFirstFile and FindNextFile.

Marc Zimmermann
Microsoft MVP - Mobile Devices
--
MVP Information - http://support.microsoft.com/support/mvp
Pocket PC Tips, Reviews, Downloads - http://www.pocketpc.com
Pocket PC Info, Works FAQ and Software - http://www.zimac.de
Pocket PC Users Ruhr, Germany - http://www.pocketpc-users.de

Georgiy

unread,
Apr 3, 2002, 11:53:51 AM4/3/02
to
"Awais Zaka" <awais...@perkinelmer.com> wrote in message
news:uluk$yl2BHA.2792@tkmsftngp05...

You can use this source as example:

<platform builder root
dir>\PUBLIC\COMMADDON\OAK\RDP\UIT\WBTTSCMN\profile.cpp
<platform builder root dir>\PUBLIC\COMMADDON\OAK\RDP\UIT\WBTTSCMN\profile.h

it works fine, but has a minor bug in unicode transform.

Good luck.
Georgiy Pekhteryev.


0 new messages