more then 100errors in header

This is a discussion on more then 100errors in header within the Windows Programming forums, part of the Platform Specific Boards category; still 'string' : undeclared identifier i did #include <string>...

  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    70
    still 'string' : undeclared identifier
    i did #include <string>

  2. #17
    Registered User
    Join Date
    Sep 2006
    Posts
    70
    Quote Originally Posted by Joelito View Post
    If you are noob, shouldn't you reading tutos, like WndProc, CreateWindowEx.... I think you are trying to run when you can't do baby steps...sorry dude for me comment, but I think is the true.
    I am following a tut , and i am now playing with the windows and buttons

  3. #18
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,739
    I just start typing stuff , so just reopen the project as C++ and see what errors i get?
    Keep on typing, if you type long enough you may just get there

    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:
    I am following a tut
    Ah, now it is different. What tutorial are you following?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #19
    Registered User
    Join Date
    Sep 2006
    Posts
    70

  5. #20
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    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.

  6. #21
    Registered User
    Join Date
    Sep 2006
    Posts
    70
    thnx !!!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21