Forum: C++ Jun 20th, 2009 |
| Replies: 5 Views: 647 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: 647 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: C++ Jun 4th, 2009 |
| Replies: 6 Views: 313 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: 313 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: 260 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: 256 |
Forum: C++ May 11th, 2009 |
| Replies: 3 Views: 256 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: C++ Apr 8th, 2009 |
| Replies: 5 Views: 576 Thanks, that solved it =D |
Forum: C++ Apr 8th, 2009 |
| Replies: 5 Views: 576 Here is my Header file:
#ifndef UTILITY_H
#define UTILITY_H
#include <wx/wx.h>
enum
{ |
Forum: C++ Apr 7th, 2009 |
| Replies: 5 Views: 576 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: 509 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: 509 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: 509 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: 262 o wow, thank you that worked |
Forum: C++ Mar 31st, 2009 |
| Replies: 2 Views: 262 #include <wx/wx.h>
class Hello : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(Hello) |
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: 458 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: 458 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: 403 nifty! thanks a lot
Ima save this source as a snippet =D |
Forum: C++ Jan 24th, 2009 |
| Replies: 6 Views: 403 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: 403 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: 386 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: 629 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: 332 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: 332 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: 332 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: 763 is there a reason why its port 1337...dot dot dot |
Forum: C++ Jan 21st, 2009 |
| Replies: 3 Views: 683 anyone have any input on the subject? |
Forum: C++ Jan 20th, 2009 |
| Replies: 3 Views: 683 So as far as ive been able to tell, wxWidget basically allows for multi OS functionality and offers a few extra ways to handle things, other then that, is there a reason why you WOULD NOT want to use... |
Forum: C++ Jan 8th, 2009 |
| Replies: 4 Views: 1,249 thanks comatose, ill dink around with what you just showed me and make it work in the proper context im looking for. |
Forum: C++ Jan 7th, 2009 |
| Replies: 4 Views: 1,249 I looked that function up, but im still confused, could you elaborate on a proper method to hide all open windows? Im still a new programmer/windows programmer. |
Forum: C++ Jan 7th, 2009 |
| Replies: 5 Views: 400 e-mail... but if u want to code something, winsock |
Forum: C++ Jan 7th, 2009 |
| Replies: 7 Views: 398 i use dev-c++. I find it easier to work with simply because the functionality is all there, but is just easier to access then Microsoft's visual c++. IMO |
Forum: C++ Jan 7th, 2009 |
| Replies: 4 Views: 1,249 For the 2 parameters lpClassName and lpWindowName in FindWindow, what do i throw in there to hide all open windows? Is this possible? MSDN makes it sound like if both parameters are null, that will... |