I realize all the answers may be Null and void when it comes to VISTA, but I was wondering, if wildcards can be used with GetPrivateProfileString and WritePrivateProfileString for an INI file?
Reason I ask is that currently I use an ini file for window positions, sizes etc so the user can put things how they like it. But I also use GetWindowText to be the zSection of the ini
Tonight I was playing with a cut-off point to start the continuation of a "Never-Ending-Saga" of versions (thanx to "Scope-Creep"....or "It works like we want, BUUUUUUUTTTTT...."
)
So I ran into a catch I did not think of...if the section did not exist (because the section did not match due to the new version), then the window would be 0,0 and you would not know it (unless to look for it like I did)
I just wondered if there was a wildcard?? or if I am right that I need to beef things up and make sure that I handle things correctly no matter what version it is?
(Obviously handling version differences is the "Correct way" but I also wanted to build in for situations that till tonight I did not notice (nor has the user notified me) that there is a problem with previous versions.
Reason I ask is that currently I use an ini file for window positions, sizes etc so the user can put things how they like it. But I also use GetWindowText to be the zSection of the ini
Tonight I was playing with a cut-off point to start the continuation of a "Never-Ending-Saga" of versions (thanx to "Scope-Creep"....or "It works like we want, BUUUUUUUTTTTT...."

So I ran into a catch I did not think of...if the section did not exist (because the section did not match due to the new version), then the window would be 0,0 and you would not know it (unless to look for it like I did)
I just wondered if there was a wildcard?? or if I am right that I need to beef things up and make sure that I handle things correctly no matter what version it is?
(Obviously handling version differences is the "Correct way" but I also wanted to build in for situations that till tonight I did not notice (nor has the user notified me) that there is a problem with previous versions.
Comment