still 'string' : undeclared identifier
i did #include <string>
still 'string' : undeclared identifier
i did #include <string>
Keep on typing, if you type long enough you may just get thereI 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?I am following a tut
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
thnx !!!