c2120 error
-
Hi, We are making changes in our application. Instead of writing in ini we writing in a local file. So we wrote a wrapper for GetProfileInt and GetProfileString. But this piece of code is giving error.
bAllowDeleteSystemVars =
WWGetProfileInt("test",
"test123"/* "AllowDeleteSystemVars" */
NULL);where bAllowDeleteSystemVars is a BOOL variable. I am getting the following error error C2120: 'void' illegal with all types Regards
-
Hi, We are making changes in our application. Instead of writing in ini we writing in a local file. So we wrote a wrapper for GetProfileInt and GetProfileString. But this piece of code is giving error.
bAllowDeleteSystemVars =
WWGetProfileInt("test",
"test123"/* "AllowDeleteSystemVars" */
NULL);where bAllowDeleteSystemVars is a BOOL variable. I am getting the following error error C2120: 'void' illegal with all types Regards
subramanyeswari wrote:
error C2120: 'void' illegal with all types
Does
WWGetProfileInt()
returns a value???nave [OpenedFileFinder]
-
Hi, We are making changes in our application. Instead of writing in ini we writing in a local file. So we wrote a wrapper for GetProfileInt and GetProfileString. But this piece of code is giving error.
bAllowDeleteSystemVars =
WWGetProfileInt("test",
"test123"/* "AllowDeleteSystemVars" */
NULL);where bAllowDeleteSystemVars is a BOOL variable. I am getting the following error error C2120: 'void' illegal with all types Regards
-
subramanyeswari wrote:
error C2120: 'void' illegal with all types
Does
WWGetProfileInt()
returns a value???nave [OpenedFileFinder]
yes, the prototype is this UINT wwGetProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, INT nDefault)
-
it's a typo. comma is there
-
yes, the prototype is this UINT wwGetProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, INT nDefault)
Yet your previous code showed
WWGetProfileInt()
. Which is it?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, We are making changes in our application. Instead of writing in ini we writing in a local file. So we wrote a wrapper for GetProfileInt and GetProfileString. But this piece of code is giving error.
bAllowDeleteSystemVars =
WWGetProfileInt("test",
"test123"/* "AllowDeleteSystemVars" */
NULL);where bAllowDeleteSystemVars is a BOOL variable. I am getting the following error error C2120: 'void' illegal with all types Regards
If you remove the
bAllowDeleteSystemVars =
, does the error persist?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne