still 'string' : undeclared identifier
i did #include <string>
Printable View
still 'string' : undeclared identifier
i did #include <string>
Keep on typing, if you type long enough you may just get there ;)Quote:
I just start typing stuff , so just reopen the project as C++ and see what errors i get?
At this point, you need to choose one and learn it well: C or C++. Windows programming is currently out of your league either way.
EDIT:
Ah, now it is different. What tutorial are you following?Quote:
I am following a tut
I'm reading your code, and based on C++:
1. Add globally using std::string to be on scoop.
2. You can't return a temp var, like in char *getCookiesPath(), either way use a heap or, easier, use param buffer, like void getCookiesPath(char *pszBuffer).
3. Cast HMENU to be use in controls IDs, with reinterpret_cast<HMENU>(someID)
At least with this you can get compilable code. But, but, I think you can do the same with clean and less lines code :)
thnx !!!:)