All,
We've worked this week on the "mergeini" functionality of the
installation helper utility, ochelper.exe. We were able to accomplish
the task on a sample otlkcon.ini file and a sample mapisvc.inf file
using the Win32 INI API functions. The API access was implemented in a
function ini_api_string_read(). The task took longer than it should
have because of the difficulty in manipulating Windows strings, but
we're better for it now.
One issue remains. The function merge_mapisvcinf() passes in wstring
objects as parameters. The CopyFile and other INI APIs take LPCTSTR
pointers. We've tried a bunch of different things. Can someone try
this out and provide some detailed assistance? Specifically, we need
to know how can we go from wstring objects to lpctstr pointers?
We attach the ochelper.h and .cpp files with the commented mergeini
functionality. . As usual, our hope was to get something off the
ground.
At this point, we have sample file paths hard-coded into the APIs.
Once we get the conversion fix, we can update, test and send the
latest code to the list.
With this project task just about complete, we'd also like guidance
about what next block we should try to hurdle.
Thanks,
Ron
ochelper.h
Description: Binary data
ochelper.cpp
Description: Binary data
