Ahh, yes, nothing that would be remotely practical. :)
Type: Posts; User: Nazca
Ahh, yes, nothing that would be remotely practical. :)
Don't make x public - use something like a public setter function, so they have to use the function instead of changing it directly. Then make your setter function called changepos.
E.g.
...
Thanks! I should've known better since I've been using theForger's guide and he has information about modeless dialogs. Anyway, I've got it sorted out and now all I have to do is hack up a...
Aye, thanks. Here's some hopefully relevant bits of code:
// An example dialog. Not one I'd particularly like to put in the main window, but works
// as an example.
DIALOG_NEW_MP_JOIN...
Hey,
I'm trying to set up my win32 app (C++ straight win32 API, by the way) in a way that when someone selects a menu item/makes a certain choice in a pop-up dialog, the main-window changes, for...
Same error message here. Weird...
[109.1] Say: O unbelievers!
[109.2] I do not serve that which you serve,
[109.3] Nor do you serve Him Whom I serve:
[109.4] Nor am I going to serve that which you serve,
[109.5] Nor are you going...
I don't think it'll really affect anyone's opinion, I just think it's tasteless. It's actually happening in Iraq and people die there, and it doesn't seem very nice to make a TV show mimicking it...
I use Ares Galaxy. It's open source so I trust it not to be doing anything nasty. Haven't looked at it myself though.
I think we have a winner.
The system ILV uses looks silly with one line of code (I drop the brackets when I have a one-line if or for), but it's what I use too for control statements.
I don't indent my functions, though. ...
Sorry - you beat me to it. :)
Two concerns about buffer2:
1) Are you allowed to initialize multiple char arrays on one line? I don't see why not, but it's possible.
2) If you receive 128 bytes, your code will run:
...
It can be used to set or display the current environment variables in your command prompt. If you use set to set an environment variable, it won't stay set permanently - it will only exist/be...
I think the third parameter should be sizeof(their_addr)...Probably why it's complaining about incorrect datatypes - what type is sin_size?
The USA and China are too far away to get in a real war...We'd have to agree to a miniturized scale model of the war on Hawaii, which I think would be a very agreeable place for all soldiers etc....
Also started with '98 and moved to XP...I hate the "Modern" style so my desktop looks pretty similar to a 98, but the Blue Screen of Death used to be a daily occurence so I consider XP a decent...
Ooh! Pick me! Pick me!
I'm sure there's a much, much less hacky way to do it but as far as what you're asking goes:
a_file.close();
b_file.close();
ofstream clearThis("info_name.txt", ios::trunc);
ofstream...
With Dev-C++, I need to link these two libraries:
/Dev-Cpp/lib/libws2_32.a
/Dev-Cpp/lib/libwsock32.a
Strangely, my program works fine without #including winsock2.h...hm.
If using FTP is ok, there is a way to run FTP scripts with Windows - Make a file with the extension ".ftp" with one FTP command per line, and call it with something like:
system("ftp...
I could swear there was an easy way to use telnet scripts in Windows, with which you could contact an SMTP daemon...but I searched for about 20 minutes and either I really suck at searchig or...
Eep. Yeah, probably much safer/smarter to go without the system calls. Didn't know how though.
I'd recommend you start using C++ strings with <string>.
If you were to use them, maybe something like this would be a start:
char status;
cout << "Are you already registered? Please enter...
I think you'll need to define "SockAddr" before you start setting ports and things.
sockaddr_in SockAddr;
After you make the socket.
(Just guessing though)