It may be helpful to set the marker to the beginning of the document. try using seakg(NULL, ios::beg);
i believe that's how it works.
Type: Posts; User: Extol
It may be helpful to set the marker to the beginning of the document. try using seakg(NULL, ios::beg);
i believe that's how it works.
Ok. Say I had two switch statements, both are quite long and drawl out, and the only difference is a Name in the structure. All i really want to do is make a function that will accept either of the...
Can anybody please give me an example of how to pass a structure via. functions. I hope it is possible, but I'm not sure. If at all possible, I'd like to pass it by value, not really by reference,...
Alright, I have this code. The idea of the code is to click on the X button to exit . My problem occurs since I can't check to see if there was a mouse click...or if there was input...and if there...
How in the world would you use this?
Link
I cannot figure it out...
Ok, I've been fulling around for awhile...and this is what I got. I want it to loop and once you click on the 'X' it will quit...what is actually going on here? and how can i fix it please.
...
I'm not going to ask anyone to explain everything to me, but could you tell me the functions...maybe some links to MSDN...I can understand MSDN fine once i actually find what i want. Or some...
Hey. I was wondering how to capture mouse movement. And if the mouse is clicked in a certain area...it would return a different value than any other area. Such that...
COORD...
I agree, but I don't really know how to go about all of it. And thank you for that link.
--------------------Configuration: Program10 - Win32 Debug--------------------
Compiling...
Program10.cpp
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main...
Alright, I finally got it to show up. I have a problem. How do I make my dialog box the active window, instead of having it in back of the console.
eh, i don't really understand that code, could you please explain it...and where would i put it into a function to get it to work.
I'm kinda learning them all at the same time. =/
I'm trying to make this resource for a simple box, with an OK and a CANCEL button...but...for some reason it isn't showing up. I don't know what i'm doing wrong. I don't 'really' know how to make...
I did take a look quick actually, must have missed it. sorry.
i don't wanna sound like i know what i'm talking about...but i am almost certain there is such a technique...
Hey, I know there is a function that can except X number of arguments and add up the sum of them...similar to the way printf works, only it can take integers. Does anybody know the name of this...
what is the ascii character for escape?
Clicky
Lets suppose I have an integer called number. Would it be possible to set boundaries on that integer so it is not possible to input a number larger than say 30000. I don't mean after you press...
cout <<flush<< "Enter the Computer Name: ";
void setPosition(){
CONSOLE_SCREEN_BUFFER_INFO screenInfo;
HANDLE hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
COORD cursorLocation={0,0};
GetConsoleScreenBufferInfo(hOutput, &screenInfo);...
if I would do GetCursorPos(&somePOINT); would it save the x and y coordinates as pixels? Is there any safe conversion from POINT to COORD? Or even better, can I do a "SetConsoleCursorPosition" with...
See, I thought about that. But I decided I would try to do it a different way to get experience, any ideas?
I was thinking about GetCursorPos() but first of all, that takes a pointer to a POINT...
Oh gosh. Yea, isn't it 4x^2+3x+4 even. I don't remember.