Forum: C++ Sep 25th, 2009 |
| Replies: 12 Views: 779 That doesnt explains anything man, Im following the msdn samples btw, and thats exactly what it does, you shutdown just for sending, but you still can receive, and Im get the error AT the function,... |
Forum: C++ Sep 24th, 2009 |
| Replies: 12 Views: 779 First..Im very beginner with winsock and network programing..
Im doing a simple app that can act or as server or as client. What Im doing is that I open the app twice in the same computer, in one I... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 1 Views: 560 I cant figure out how make the Button visible proccessing WM_PAINT myself, it just get visible after pressing it..
//THE WM_PAINT message:
case WM_PAINT:{
RECT myrect; |
Forum: C++ Jun 19th, 2009 |
| Replies: 2 Views: 691 I knew..but I think I just figure out my stupid mistake,
Im quiting the loop before proccessing the WM_QUIT( because gsp_quit became true and the message is not processed )..-_-" |
Forum: C++ Jun 17th, 2009 |
| Replies: 2 Views: 691 Im kind confuse about how PostQuitMessage works..
Im using like this:
case WM_CLOSE : DestroyWindow( hWnd ); break; //send WM_DESTROY
case WM_DESTROY : CleanUp();
gsp_quit = true;... |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 428 "Apropos, avoid illusions: this evil fstream knows nothing about your classes and no such beast as a class management in C++..."
I meant something like including the classes in a wrong way, so... |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 428 I forgot the '.h' files..sorry.I guess I have to upload all sdl .h files rigth? Im attaching all sdl files..
Yeah, Im getting +- 50 warnings about float conversion, I thought it was ok cause I... |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 428 I dont get it..I though it was ok because the scope( and it was, since it never give me any problem..)
I just changed it to 'j' and the same problem happens.. |
Forum: C++ Apr 14th, 2009 |
| Replies: 5 Views: 428 I dont know how to explain very well, I have a class that works 100% fine..
The problem is that now I want access that class inside of other class, when I do it, things stop of working fine and gets... |
Forum: C++ Mar 24th, 2009 |
| Replies: 5 Views: 364 But my Player object is inside other class ( I though that was the problem) I also using .h and .cpp files to each class...
Im attaching my files to .rar file..
It was compiling OK until I put the... |
Forum: C++ Mar 24th, 2009 |
| Replies: 5 Views: 364 How I can do it?
I want a constructor of a object to have parameters, this object is inside other class..the compiler say the class dont have proper default constructors..(error C2512)
...... |
Forum: C++ Mar 18th, 2009 |
| Replies: 23 Views: 1,015 I attached the files.
"and put all this junk just after it??"
I get it, but it puts the junk after ALL the bits, not just after each one, that is what Im not understanding.
And how can I say... |
Forum: C++ Mar 18th, 2009 |
| Replies: 23 Views: 1,015 + rgbb 0x0044714c "øÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍþÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͸ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ... |
Forum: C++ Mar 18th, 2009 |
| Replies: 23 Views: 1,015 Im attaching a .zip file with the cpp and the image files im using to test the program..**
mitrmkar, but I think this is exactly what Im doing now, I tried with unsigned char and the method you... |
Forum: C++ Mar 16th, 2009 |
| Replies: 23 Views: 1,015 For text files I use the int rgb[3]....
I dont get very well what do you mean, I do not initialize rgbb with default values, i just start use it when reading the pixel map from the original file:... |
Forum: C++ Mar 16th, 2009 |
| Replies: 23 Views: 1,015 BTW, in this case im using just rgbb[0] because im using a PBM file, with is a black and white and just use one bit per pixel, so i dont need rgbb[0] rgbb[1] rgbb[2]..but i keep the array because my... |
Forum: C++ Mar 16th, 2009 |
| Replies: 23 Views: 1,015 "Does rgbb contain anything?"
- If the PNM file Im trying to open is a Binary one, so I use rgbb to read the pixel map, and so write it to a new file( I though is better use chars to get binary... |
Forum: C++ Mar 16th, 2009 |
| Replies: 23 Views: 1,015 no no no no no..you get it wrong
The new file are getting bigger because theres a lot of memory junk being writed on it, comparing with the original one, with have no "ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ" at... |
Forum: C++ Mar 16th, 2009 |
| Replies: 23 Views: 1,015 Hi again
I opened the new file with word pad, the problem is theres a lot of memory junk being writed on the end of the file (ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ...) lots and lots
Any idea of what can... |
Forum: C++ Mar 14th, 2009 |
| Replies: 23 Views: 1,015 all PNM files have an ascii and a binary version, in my case is the binary.. |
Forum: C++ Mar 14th, 2009 |
| Replies: 23 Views: 1,015 Its a pointer to struct PIXELS with :
int rgb[3];//for ascii
char rgbb[3];//for binary
PIXELS *img_pix = new PIXELS[width*height];
I was thinking if a have to 'finish' the file in some way(... |
Forum: C++ Mar 14th, 2009 |
| Replies: 23 Views: 1,015 The file gets more kB then the original ( 114KB to 914KB)
And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try... |
Forum: C++ Mar 8th, 2009 |
| Replies: 3 Views: 430 So Im kind confused...
The thing is that after read some piece of the file to the variables it gets on that 'end-of-file' state, is that right?
So what exactly should someone do to avoid it?... |
Forum: C++ Mar 7th, 2009 |
| Replies: 3 Views: 430 Hi, I alredy got it to work, but I did things that I figured out by debugging it, and I dont understand very well what is happening..
So..I trying to read a file header( its a ppm image file),... |
Forum: C++ Feb 20th, 2009 |
| Replies: 1 Views: 223 Hi, im reding a book where the way it draw poligons are like that:
glBegin (GL_TRIANGLES);
glVertex3f (0.0f, 0.0f, 0.0f);
glVertex3f (0.0f, 1.0f, 0.0f);
glVertex3f (1.0f, 1.0f, 0.0f);... |
Forum: C++ Feb 16th, 2009 |
| Replies: 6 Views: 732 I dont understand, theres some old project that works fine( build and detect "up to date") but others are with the same problem now...
what the hell is happening??! Dx thats so annoyng |
Forum: C++ Feb 16th, 2009 |
| Replies: 6 Views: 732 Didnt work..the problem is really on VS..i tried resetting all settings to default, didnt work..its like a damn bug, maybe my windows is the problem, but im not seeing anything wrong.. u__u****
... |
Forum: C++ Feb 16th, 2009 |
| Replies: 6 Views: 732 yeah, but thats is really not a good idea, since it will keep building and building ever...get it?
if i test the program, quit it, and test again it will rebuild, theres no more "- 1 up to date "... |
Forum: C++ Feb 16th, 2009 |
| Replies: 6 Views: 732 Doesnt matter if i build, rebuild, clean and do all again, if i want to debug it will ask again and build it before execute the program...
I dont know what happened, I have been like a month away... |
Forum: C++ Dec 23rd, 2008 |
| Replies: 8 Views: 2,203 Thanks
now im having problem with this:
fstream arq_time;
arq_time.open("recordes.gsp",ios::in|ios::out);
arq_time.seekp(0);
arq_time<< "\t\t\t\t RECORDS\n\n\n"; |
Forum: C++ Dec 23rd, 2008 |
| Replies: 8 Views: 2,203 Tanks a lot for the help, that works perfectly.
Theres something else bothering me now..
Theres a way to input things in a certain position in the file, whithout overwrite the content? Like put a... |
Forum: C++ Dec 22nd, 2008 |
| Replies: 8 Views: 2,203 I have a file with record times, i need take each time and compare it whit the actual player time, so if the player time is < then the best time:input player time on top, if is >, then compare whit... |
Forum: C++ Dec 21st, 2008 |
| Replies: 1 Views: 325 data_w_arq.open("data.gsp",ios::in);
¦D solved |
Forum: C++ Dec 21st, 2008 |
| Replies: 1 Views: 325 Hi, Im trying to write to specific points in a file, but the write() erases everything in the document..heres what im doing:
the file:
mode 0 ;
level 0 ;
menu 1 ;
the code: |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 706 That 'deck shuffler algorythm' is awsome, i never got either close in thinking about that, i'll try it, and use it progressively as you mentioned
it will take looong.. i will change all logical... |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 706 win2000 , visual studio 2005, console application
(sorry my poor english)
I dont know very well how start explain whats my problem..
Im making a sudoku game (not unic solution, just random =P)... |
Forum: C++ Nov 21st, 2008 |
| Replies: 4 Views: 606 tanx =D
void FullScreen(){
keybd_event(VK_MENU, 0x38, 0, 0);
keybd_event(VK_RETURN, 0x1c, 0, 0);
keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
keybd_event(VK_MENU, 0x38,... |
Forum: C++ Nov 21st, 2008 |
| Replies: 4 Views: 606 Hi, i was tring to figure how set display mode to fullscreen under win2000, i saw at msdn that theres a SetConsoleDisplayMode, but that is for winXP +..
I tried
//sets the console window... |
Forum: C++ Nov 11th, 2008 |
| Replies: 2 Views: 1,166 Yeah, it works perfectly! o.o
Tanx a lot man!!
But, do you know what was that my wrong code was returning as x and y before? Im curious. |
Forum: C++ Nov 11th, 2008 |
| Replies: 2 Views: 1,166 I don't knof if that's the right place, since it's not c++ specific but a windows development doubt...
(and sorry my english)
My problem is kinda stupid, but i don't know whats happening, im... |