Thanks!
Type: Posts; User: bladerunner627
Thanks!
Erm, </body> isn't optional. You have to have that if you are coding under proper HTML syntax.
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
That would beat the point of the header file. I don't wanna do that.
There another alternative?
That works better, but I still get alot of errors
controller.o: In function `CControllerFunc::CControllerFunc()':
controller.cpp:(.text+0x0): multiple definition of...
Ok, now I changed the make file to
TARGET = gui_class_tut
OBJS = main.o
OBJS = controller.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
build.mak is just part of the sdk itself. Lemme see if adding it to the OBJS works.
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...
Well controller.h is included into main.cpp, so wouldn't that work? If not give me an example.
Oddly enough I heard it is possible. There was an example on the mYg0t forums, but now it's gone.
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...
You don't need to post the code twice. Bumping is frowned on. Please try posting in the gamedevelopment forum.
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...
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.
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...
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.
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?
Looking into strtok. Thanks! Ill tell you how it works out.
I have a feeling im gonna be making my first gigantic function.
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",...
We all make mistakes :D
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...
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...
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.
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...