No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Dish Washer(for right now)
- Interests
- Programming, Video Games, Skateboarding, Writing, Reading
I would like to know how to do this. Are there any functions specifically for it? Or do you have to do it manually? | |
When attempting to connect to my sql server through Vale Software's MSDE Manager, I get the error [SQL-DMO]Service Control Error: The RPC server is not available. I made sure all processes involving RPC were turned on, and I also turned on the DCom service process launcher as I read to … | |
Why is it that a major class should be defined in a header file, then given a source file to define it's functions? | |
Hi, I'm attempting to set up dotnetnuke with Microsoft's SQL MSDE as my database. After getting SQL up and running, I created a database aptly named dotnetnuke, and a login called dnnuser. I set dnnuser's role on dotnetnuke to system administrator and it's role membership to db_owner. After altering the … | |
Here soon, I was hoping to buy an IDE for C++. However, I'm not sure which is the best to buy. I only know of Borland and Microsoft's as popular IDEs. Are there any other popular IDE's that are worth purchasing. I'll be heading off to college here soon, and … | |
[CODE]if(cmd=="new"){ string name,desc; cout<<"Name? "; cin>>name; Setcursor(Conloc); cout<<"Desc? "; cin>>desc; Setcursor(Bodyloc); Invitem Item(name,desc);[/CODE] When the values of the string desc is set through cin, if a space is used, all text after that space isn't used. Also, If two words are used when setting name, it will give the second … | |
Is it neccesary to ever define more than one output or input handle in a Win32 Console program? | |
What I'm looking for is where to look for how to set the size of the console window automatically, as opposed to the default. I've searched through the MSDN library's Console reference for any function that would set it, but nothing seemed relevant to me, granted I'm not very proficient … | |
[CODE]SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT); while(1) { ReadConsoleInput(InputH,&InputRecord,1,&InputEvents); if(InputRecord.Key_Event) { if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl; } FlushConsoleInputBuffer(InputH); }[/CODE] [FONT=Book Antiqua] [SIZE=4][COLOR=DarkSlateGray]FlushConsoleInputBuffer() is used to prevent input from echoing, correct? If so, that command isn't doing it's job, I still get echo, and I can't figure out why. Any suggestions? I reposted this … | |
[SIZE=2][COLOR=SlateGray][FONT=Palatino Linotype][code] SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT); while(1) { ReadConsoleInput(InputH,&InputRecord,1,&InputEvents); if(InputRecord.Key_Event) { if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl; } FlushConsoleInputBuffer(InputH); }[/code] There's the snippet. It takes in input correctly, but despite the FlushConsoleInputBuffer() line, it still echo's. What am I missing here?[/FONT][/COLOR][/SIZE] | |
Is reading and writing strings inside of structures possible, or must you use character arrays? Here's what I've tried; no compiler errors, but it doesn't display the text: [CODE]struct Account{ float balance; string Owner; }; int main(int argc, char *argv[]) { fstream File; Account Acc; int row; cout<<"Open or New? … | |
I just can't figure out why this program isn't reading in the entire file. It will only read in the second line, nothing else. Here are my read and write functions: bool Write(string Text,string FileName){ fstream Write; Write.open(FileName.c_str(),ios::out|ios::app); if(!Write){ cout<<"Error in opening file"; return 0; } Write<<Text; Write.close(); return 1; … |