Can't call WriteProfileInt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can't call WriteProfileInt -- I get undeclared identifier. If I
#include <afxwin.h> -- and declare it in my .h -- I still get unresolved
external.

-- Need to write to ini, don't want to write to registry --
WriteProfileString works fine though.

???

Thanks.
 
MCC said:
Can't call WriteProfileInt -- I get undeclared identifier. If I
#include <afxwin.h> -- and declare it in my .h -- I still get unresolved
external.

-- Need to write to ini, don't want to write to registry --
WriteProfileString works fine though.

How do you know that WriteProfileString works fine if you can't call it?

--PA
 
MCC said:
Can't call WriteProfileInt -- I get undeclared identifier. If I
#include <afxwin.h> -- and declare it in my .h -- I still get unresolved
external.

-- Need to write to ini, don't want to write to registry --
WriteProfileString works fine though.

???

Thanks.

There is only CWinApp::WriteProfileInt, not ::WriteProfileInt. It's not
hard to write one in terms of WriteProfleString, though.

David Wilkinson
 
Ok -- WriteProfileString compiles, links fine, and writes to the ini fine.

.... and I guess I could use it -- since it doesn't quote the string in the
ini file anyway.

However, I was wondering why I can't get WriteProfileInt (or
::WriteProfileInt, or CWinApp::WriteProfileInt) to compile and link at all.
 
Back
Top