Forum: C++ Jun 20th, 2009 |
| Replies: 5 Views: 639 i did not know there was a getline, how many chars will it default out to, because i also want to do this in binary mode as well with things other then text documents. ill do some testing with that.... |
Forum: C++ Jun 20th, 2009 |
| Replies: 5 Views: 639 So say I want to open a text document for reading using an instance of ifstream.open, etc.. etc... So once i open the txt file to read from it, what functions do i use to scan each character and put... |
Forum: Geeks' Lounge Jun 4th, 2009 |
| Replies: 32 Views: 2,355 User: ?
User: Hello.
Cleverbot: Why?
User: Why did you ask me why? |
Forum: C++ Jun 4th, 2009 |
| Replies: 6 Views: 304 This helps, but to clarify, instead of taking a string of charecters from a text file and throwing them into an array, is it possible to take that same concept but do it with binary? Thanks |
Forum: C++ Jun 3rd, 2009 |
| Replies: 6 Views: 304 Is it possible to open a file in binary mode and make an array out of it then to encrypt that information. I guess I should ask how you would start something like that? Thanks |
Forum: C++ May 26th, 2009 |
| Replies: 5 Views: 255 www.cprogramming.com
go there and theres a tutorial section on c++ that will get you started. |
Forum: C++ May 14th, 2009 |
| Replies: 3 Views: 253 |
Forum: C++ May 11th, 2009 |
| Replies: 3 Views: 253 I am writing an app right now that needs winmm.lib. I tried typing winmm.lib in the project properties under the correct section, but kept saying that does not exist. So i did a little research and... |
Forum: Geeks' Lounge Apr 10th, 2009 |
| Replies: 1 Views: 325 http://kingwarlock.mybrute.com
gogogo! |
Forum: C++ Apr 8th, 2009 |
| Replies: 5 Views: 565 Thanks, that solved it =D |
Forum: C++ Apr 8th, 2009 |
| Replies: 5 Views: 565 Here is my Header file:
#ifndef UTILITY_H
#define UTILITY_H
#include <wx/wx.h>
enum
{ |
Forum: C++ Apr 7th, 2009 |
| Replies: 5 Views: 565 When I declare an event table in a class a.k.a DECLARE_EVENT_TABLE(); then try to compile, i always get this error:
[Linker Error] undefined reference to `vtable for Utility' (utility being my... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 10 Views: 499 lazy? Not at all, I know many different api's have functionality that allows you to do the same thing as winsock, but I am more familiar with winsock then other api's similar functions. Perhapes if... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 10 Views: 499 well thats not very helpful =(. I am just looking for a simple idea if anyone can give me one. Nothing super in depth |
Forum: C++ Apr 2nd, 2009 |
| Replies: 10 Views: 499 If I were to work on say an Instant Messenger project, and wrote the gui and event handling using wxWdigets, could I then use the windows API and use winsock to connect the two computers? Basically... |
Forum: C++ Mar 31st, 2009 |
| Replies: 2 Views: 261 o wow, thank you that worked |
Forum: C++ Mar 31st, 2009 |
| Replies: 2 Views: 261 #include <wx/wx.h>
class Hello : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(Hello) |
Forum: Geeks' Lounge Jan 27th, 2009 |
| Replies: 30 Views: 2,297 I'm not saying Christianity is the only way to go, infact I myself dont belive in any relgion. All religion is to me is a principle to live your life by which i find to be rubbish, but i dont insult... |
Forum: Geeks' Lounge Jan 27th, 2009 |
| Replies: 30 Views: 2,297 The ones in Guantanamo are... Also for your knowledge, Obama always marked his religion as Muslim back in college and only recently converted to Christianity when the race was on to become president.... |
Forum: Geeks' Lounge Jan 27th, 2009 |
| Replies: 30 Views: 2,297 lol, my point wasn't that Bush was a good president, I used that example because every Obama supporter is an extremist anti-bush hater because of the war situation, and they think that Obama has some... |
Forum: Geeks' Lounge Jan 26th, 2009 |
| Replies: 30 Views: 2,297 I hope all of you Obama fanboys are proud that you finally elected your closet terrorist into office so that he could shut down Gauntanamo Bay and release all his muslim friends, and while he was at... |
Forum: C++ Jan 26th, 2009 |
| Replies: 9 Views: 409 Sorry for double post, but im having trouble getting it to compile.
string vOut;
RegCreateKeyEx("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "clutch", 0, NULL,... |
Forum: C++ Jan 26th, 2009 |
| Replies: 9 Views: 409 Thats what i was looking for lol. ill just look that up on msdn.
thanks |
Forum: C++ Jan 26th, 2009 |
| Replies: 9 Views: 409 ya, i got that much, but what would i do with that? |
Forum: C++ Jan 26th, 2009 |
| Replies: 9 Views: 409 Well ya... i asked how you would do something like this because I don't know how and I'm writing code in c++ right now... and your kind've being a dick, even in my other thread you insulted me. |
Forum: C++ Jan 26th, 2009 |
| Replies: 3 Views: 457 I'm just curious as to how the system works, and i am obviously still a beginner in programming. I'm trying to figure out how to write headers and what exactly they do. I know that they carry pre... |
Forum: C++ Jan 26th, 2009 |
| Replies: 3 Views: 457 Im not sure if this is how the process would work, but if i am to say create a header file named myheader and in that header wrote
#define functionName
{
code...
}
and then wrote a .cpp... |
Forum: C++ Jan 26th, 2009 |
| Replies: 9 Views: 409 I want my program to run on start up through editing the registry, how would i do that? Certain API's? or a specific way through c++ to do it? Or is that even the right method? Basically i would... |
Forum: C++ Jan 25th, 2009 |
| Replies: 2 Views: 233 oh my god... i didnt even realize i put that semi colon there lol. Thanks Dragon =D. |
Forum: C++ Jan 25th, 2009 |
| Replies: 2 Views: 233 I have declared kbSize as an integer earlier in my code as a global variable, so there's no confusion from replies with it being local, and have a formula that process's its value, but for some... |
Forum: C++ Jan 25th, 2009 |
| Replies: 6 Views: 398 nifty! thanks a lot
Ima save this source as a snippet =D |
Forum: C++ Jan 24th, 2009 |
| Replies: 6 Views: 398 Sorry lol, a million a's was just an exaggerated expression to get a point across. And i dont understand what solution you guys have given me. sorry =( |
Forum: C++ Jan 24th, 2009 |
| Replies: 6 Views: 398 is there a way to contain the text in a normal format when writing out to a text file? By this i mean, if i have cout output a million a's, instead of one long line if u open and view the txt file,... |
Forum: C++ Jan 24th, 2009 |
| Replies: 7 Views: 384 what does everyone else use? Another question i have is if there are any significant advantages of VC over Dev? I was figuring out if i should make the switch or not. |
Forum: C++ Jan 24th, 2009 |
| Replies: 2 Views: 623 I want to make an if statment that checks for the size of a text file. What is the syntax to declare that?
if( txtfile.txt = 5kb || txtfile.txt = 10kb )
{
blah blah
}
?????
thanks |
Forum: C++ Jan 23rd, 2009 |
| Replies: 5 Views: 327 Thank you for your guys input, this question was for my general knowledge because it randomly popped into my head. Thanks! |
Forum: C++ Jan 23rd, 2009 |
| Replies: 5 Views: 327 sorry, i must have edited after you already posted, but i did. So i guess the real question is, well it cause problems down the road, or should it function how i would assume? |
Forum: C++ Jan 23rd, 2009 |
| Replies: 5 Views: 327 Is it possible to declare something like
string blah[51]
The way I would assume this would function is that each elements of the blah array would be a string, or is this not possible?
... |
Forum: C++ Jan 21st, 2009 |
| Replies: 5 Views: 743 is there a reason why its port 1337...dot dot dot |
Forum: C++ Jan 21st, 2009 |
| Replies: 3 Views: 680 anyone have any input on the subject? |