Search:

Type: Posts; User: bladerunner627

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 13 minute(s) ago.

  1. Replies
    3
    Views
    1,112

    Thanks!

    Thanks!
  2. Replies
    3
    Views
    2,476

    Erm, isn't optional. You have to have...

    Erm, </body> isn't optional. You have to have that if you are coding under proper HTML syntax.
  3. Replies
    3
    Views
    1,112

    Making proper wrappers.

    Hope this isn't a stupid question, but Im trying to make a proper wrapper for printf.

    I get the proper output doing the following:

    text.hprintf("test\n");

    The output is:

    test
  4. That would beat the point of the header file. I...

    That would beat the point of the header file. I don't wanna do that.
    There another alternative?
  5. That works better, but I still get alot of errors...

    That works better, but I still get alot of errors



    controller.o: In function `CControllerFunc::CControllerFunc()':
    controller.cpp:(.text+0x0): multiple definition of...
  6. Ok, now I changed the make file to TARGET...

    Ok, now I changed the make file to



    TARGET = gui_class_tut
    OBJS = main.o
    OBJS = controller.o

    INCDIR =
    CFLAGS = -O2 -G0 -Wall
  7. build.mak is just part of the sdk itself. Lemme...

    build.mak is just part of the sdk itself. Lemme see if adding it to the OBJS works.
  8. Yea, I am using a make file, and I am using...

    Yea, I am using a make file, and I am using Cygwin, because this a linux based compiler :D and this is what's in it :



    TARGET = gui_class_tut
    OBJS = main.o

    INCDIR =
    CFLAGS = -O2 -G0...
  9. Well controller.h is included into main.cpp, so...

    Well controller.h is included into main.cpp, so wouldn't that work? If not give me an example.
  10. Replies
    8
    Views
    2,986

    Oddly enough I heard it is possible. There was an...

    Oddly enough I heard it is possible. There was an example on the mYg0t forums, but now it's gone.
  11. undefined reference to function in class error

    Yea for some reason I keep getting this error.

    ERROR


    main.o: In function `Render()':
    main.cpp:(.text+0xa0): undefined reference to `CControllerFunc::buttonstatus(int
    )'
    collect2: ld...
  12. Replies
    6
    Views
    2,511

    You don't need to post the code twice. Bumping is...

    You don't need to post the code twice. Bumping is frowned on. Please try posting in the gamedevelopment forum.
  13. Replies
    19
    Views
    2,523

    Ok thanks, but there's one little part im...

    Ok thanks, but there's one little part im confused. Where you have
    std::istringstream istrm(line); I understand thats a case for the istringstream class, but whats with the (line) part? Sorry if...
  14. Replies
    19
    Views
    2,523

    Sorry if this is asking to much, but could you...

    Sorry if this is asking to much, but could you show me an example of using stringstream. Iv been going by what everyone tell's me, and I always get shifted in diffrent directions.
  15. Replies
    19
    Views
    2,523

    This looks right to me. Note that charInput is an...

    This looks right to me. Note that charInput is an std::string. I also didn't post all of the code since it is quite large, and these are the only 2 functions you really need to see.


    void...
  16. Replies
    19
    Views
    2,523

    Hmm, well I wonder if there are any alternatives...

    Hmm, well I wonder if there are any alternatives to c_str().
    I don't like the fact that it assumes that your never gonna change the value of that string.
  17. Replies
    19
    Views
    2,523

    Ok, well the only problem I have is since im...

    Ok, well the only problem I have is since im using strings in my prog I use c_str(); to convert them into const char*, but this strok function want's char* instead of const char*. Any ideas?
  18. Replies
    19
    Views
    2,523

    Looking into strtok. Thanks! Ill tell you how it...

    Looking into strtok. Thanks! Ill tell you how it works out.
  19. Replies
    19
    Views
    2,523

    I have a feeling im gonna be making my first...

    I have a feeling im gonna be making my first gigantic function.
  20. Replies
    19
    Views
    2,523

    Spliting strings?

    I was making a console type program, but the only part im stuck on is spliting the commands that the user inputs. For example. Lets say the user inputs--"exec C:/blah.exe". I wan't to split "exec",...
  21. We all make mistakes :D

    We all make mistakes :D
  22. EDIT: Also, maybe if the idiot was running...

    EDIT:
    Also, maybe if the idiot was running something in a series of directories. EX: exec "C:\blah\omg\this\is\a\really\long\string\for\a\file\location.exe". This isn't 256 characters, but you still...
  23. Ok, thanks. Also another thing thats bugging me...

    Ok, thanks. Also another thing thats bugging me about this program is that since I set charInput to 256 characters then someone can't type in more then 256 characters. Only problem is if they enter...
  24. Thanks, man! I owe you one! I wish I knew this at...

    Thanks, man! I owe you one! I wish I knew this at the get-go. Iv been learning my stuff from a book so newstyle is hard to get used to.
  25. Replies
    1
    Views
    6,459

    I think its because your compiler (Visual Studio)...

    I think its because your compiler (Visual Studio) is detecting it as a C project and not C++ hence the ".c" extension.

    I may be wrong, but that's a REALLY bad habit of making it .c instead of .cpp...
Results 1 to 25 of 69
Page 1 of 3 1 2 3